A tiny program that will make you rich beyond all measure! (nah, it probably won't)
- Ruby 2.0.0 (1.9.3 should work)
- A Mac
-
Clone this repo
$ git clone [email protected]:muxcmux/casino-bot.git
-
Install dependencies
$ bundle install
First, copy config/bot.yml.example
to config/bot.yml
and edit appropriately. You'll have to keep an open tab on the roulette game. To figure out mouse coordinates, you can do one of two things:
-
Pres Cmd + Shift + 4. A Crosshair with coordinates will appear.
-
Move your mouse to a given position and then to see your mouse coords run
$ bundle exec bin/cliclick p
Next, you need to take two reference screenshots. Spin the roulette and wait for it to finish. When it ends, run
$ bundle exec rake refscreens
Follow the instructions. Make sure that both tmp/black.png
and tmp/red.png
are the correct reference images.
$ bundle exec rake test
Tests should run on your average CI server (OSX specific binaries are replaced with echo
in the test environment). Running the tests generates coverage report in coverage/index.html
-
Open the roulette game in your browser
-
Run
$ bundle exec bin/bot your_starting_balance
where
your_starting_balance
is an int > 0 -
PROFIT! (until you go bankrupt)
Sprees are announced in Unreal Tournament style (also DoTA). Turn up you speakers to hear them when you are on a winning spree. Alternatively, you can test them just for phun with a rake task where num
is an int between 2 and 10 :D
$ bundle exec rake spree[num]
- Fork the repo
- Grab dependencies:
bundle install
- Create a topic branch and make your changes
- Test your changes:
bundle exec rake test
(aim for > 90% coverage) - Create a Pull Request
Do whatever the fuck you want, but don't blame me for the big hole in your bank account.