poCker
|
Represents a set of customizable rules of the poker game. More...
#include <gamerules.h>
Public Attributes | |
int | ai_player_count |
Amount of players that are controlled by AI. The rest is controlled through human prompts. | |
int | big_blind |
Big blind bet amount. | |
int | funds_per_player |
The amount of funds each Player will start out with. | |
bool | limit_fixed |
Whether or not the bets will be fixed. | |
int | player_count |
Amount of all players, AI and humans included. | |
int | small_blind |
Small blind bet amount. It's automatically set to be big blind divided by two and rounded down. | |
Represents a set of customizable rules of the poker game.
Recommended to initialize it through prompt functions, unless used for unit-tests.
int GameRuleSet::big_blind |
Big blind bet amount.
This amount will influence the minimum bet amount and the pot's initial amount. Player first to the left of the dealer has to pay the small blind, and the next of him has to pay the big blind. Action starts on the third player and (assuming no raises) ends on the big blind player.
bool GameRuleSet::limit_fixed |
Whether or not the bets will be fixed.
No-limit game means that the maximum amount of the bet isn't set, meaning players can bet as much as all of their funds. There is only the minimum amount of bet, equaling the big blind amount. Fixed-limit game restricts players to two fixed bet amounts, small limit which equals the big blind, and high limit which equals two times the big blind.