State copy_state(const State &state)
Copy the old state to a new state.
int info_num_quartets(const State &state, int player)
Get the number of quartets the given player has.
State init_state(const Settings &settings)
Initialize the starting state corresponding to the given settings.
int info_num_cards(const Settings &settings, const State &state, int player)
Get the number of cards the player has without counting the cards from quartets, so the actual number...
The information connected to a card.
std::vector< bool > players
The players which could have this card.
The information connected to a player.
std::vector< int > sets
The number of cards the player at least has from a certain set.
int num_cards
The number of cards this player has.
The settings which characterize a game.
std::vector< Player > players
The information on all the players.
std::vector< Card > cards
The information on all the cards.
int onturn
The player who is on turn.
std::vector< int > quartets
The information of who has a certain quartet.