First update of 2014 ...
The !game command has been given a good looking over and the little bug it contained squashed by dint of, in effect, a bit of a re-write! Hopefully it is now bug-free! The sub-commands are all the same as before (with one additional one) and with an additional feature:
- Code: Select all
!game start Nick1 Nick2 [Nick3 ...]
This will set up the game in the current channel, with the one entering the command being designated the owner of the game. At least 2 nicks must be specified, and no more than 8. If the owner just acts as dealer they will see the cards being dealt to the players, but if they take part they will not do so (this is the new feature).
Once the game has been set up you can actually start to play one of the three games included:
- Code: Select all
!game holdem
!game deal
!game blackjack
Each of those will deal the initial set of cards to all players (2 for holdem, 5 for deal and 2 for blackjack).
For the 'holdem' game the owner also has, in order the following:
- Code: Select all
!game flop
!game turn
!game river
Which will add to the open cards 'on the table'; the flop will lay out three cards, the turn and river one apiece, with all five open cards displayed following the show of the river.
For the 'deal' game there are no additional options. I may add something allowing cards to be turned in.
For the 'blackjack' game there are options for the players:
- Code: Select all
!game hit
!game stick
If you 'hit' you will get an additional card dealt to you. If you 'stick' you won't
Of course and to know who has won ...
- Code: Select all
!game show
Will show the carsd of the player who issued the command in the channel
- Code: Select all
!game display
Can be only used by the owner of the game and will show all hands in channel
At the end of the game the owner should use:
- Code: Select all
!game stop
Which will relinquish control and allow someone else to start a game in that channel. Any Op is also able to do this if need be.
Thanks to Lyanna for the help with this, and the beta testers who got dragooned in
<edit>
Update to correct the flow of the holdem game
</edit>