| Poker Site Manual | |
| The main sequence. Program, frontpage, firsttoact, and bot folds calls and raises
files.
The program accepts from either the frontpage function for unregister players, or the logon file for registered players, the variables $punter and $seed and sets player's name and a random number. The program uses the functions evaluate, card, errorcheck, firsttoact, botfolds, botcalls, botbets and botraises. Errorcheck checks player input for errors such as impermissible bets or raises. Firsttoact presents the player with her decisions when she is first to act. Botfolds updates and generates a new random number. Botcalls updates, and if the player is entitled to a response presents it. Botbets and botraises update and present the player with her options to respond. The program defines variables to keep track of information. Betting order settings include $dealer, $notdealer, $round and $playeraction which tracks the decsion made by the player. Credit settings include $playerchips and $robotchips to track the number of credits player and bot have at the beginning of each hand, $totalplayerwager and $totalrobotwager to track the what player and bot wagered on prior rounds, $playerwager and $robotwager to track what player and bot wagered previously on a particular round, and $wager to track the current wager. For registered players, the playerchips field is updated at the beginning of each hand to match $playerchips. The program displays a card table and an announcement table. The card table presents the player cards, the bot cards and the community cards each in a separate subtable. The announcment table presents the robots decisions, the players options and the result of the hand. | |
|