poCker
Loading...
Searching...
No Matches
GameState Struct Reference

Represents the current state of a poker game. More...

#include <gamestate.h>

Public Attributes

bool all_but_one_folded
 Boolean to indicate if all but one player have folded their cards - this indicates an auto-win for that Player.
 
int b_blind_player
 Index of the Player with "big blind" status.
 
unsigned int bet
 Amount of the current bet.
 
int betting_round
 Number of the betting round. There are 4 rounds: pre-flop, flop, turn and river.
 
int current_player
 Index of the Player who is currently deciding what action to take.
 
int dealer_player
 Index of the Player with dealer's button.
 
unsigned int pot
 Amount currently in the pot.
 
int raises_performed
 How many raises have been called by all players in the current betting round.
 
int revealed_comm_cards
 Amount of community cards which are "face-up" meaning visible to players.
 
int s_blind_player
 Index of the Player with "small blind" status.
 
int turns_left
 How many turns are left until the current betting round ends.
 

Detailed Description

Represents the current state of a poker game.

Recommended to initialize this struct through gsCreateNew(), but hey I'm not your mom.


The documentation for this struct was generated from the following file: