https://github.com/chadhietala/smuggler
https://github.com/chadhietala/smuggler
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chadhietala/smuggler
- Owner: chadhietala
- Created: 2013-01-26T15:25:03.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-26T20:46:50.000Z (over 12 years ago)
- Last Synced: 2025-04-05T00:11:17.500Z (2 months ago)
- Language: Clojure
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# smuggler
A solution to the drug smuggler / knapsack algorithm using Clojure and Leiningen.
# Getting Started
I used [homebrew](http://mxcl.github.com/homebrew/) to install all the packages that I needed.
* `brew install clojure`
* `brew install leiningen`To run the test suite `cd` into smuggler and then run `lein test`.
To run the application `cd` into smuggler and then run `lein repl`. This will load a clojure REPL in the context of smuggler. Then do the following:
1. Require the core clojure file `(require 'smuggler/core)` (yes that is a single quote... its weird)
2. Run the main method `(smuggler.core/-main)`
3. Enter the size of your bag then hit return
4. You should recieve the value of the bag and the dolls as a list of hashes