Your bot will be queried with the following method:
- Bot#ask_for_bet(high_bet, pot, players)
and it's expected to return nil if it doesn't want to play anymore, or an integer representing the amount of money it wants to bet. If it bets more than it has, or more than it can during a round, the server will accept the maximum it can.
The args are:
- high_bet: the highest amount of money that has been bet
- pot: the amount of money in the pot right now
- players: an array containing players objects for each player still in the game. The player object supports two methods: Player#card and Players#stack, respectively returning the card they have and the money they have left
The Arena for bots matches.
Add this line to your application's Gemfile:
gem 'rsc-arena'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rsc-arena
TODO: Write usage instructions here
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request