/jug_city

Some probability generation code for a cool board game we're making

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

Jug City

Explanation

My friend and I are making a board game called Jug City (it's a climbing term I swear)! Why figure out probabilities by hand, when you can get a computer to do it? :wink

Getting Setup

You'll need to have a working version of Ruby (rbenv is a good choice to manage versions). Once you have a decently up to date version (ideally 2+) run ./bin/setup.

Using the Script

For help output, run the command without arguments: ./bin/jug_city

To get a set of dice that matches the probability range of a climb, simply pass in the grade of a climb to the program: ./bin/jug_city 5.10

Running the Tests

bundle exec rspec