Quaternity
|
The complete game state. More...
#include <state.h>
Public Attributes | |
int | onturn |
The player who is on turn. More... | |
std::vector< Card > | cards |
The information on all the cards. More... | |
std::vector< Player > | players |
The information on all the players. More... | |
std::vector< int > | quartets |
The information of who has a certain quartet. More... | |
The complete game state.
This struct contains all the information of the game state at a specific moment in time.
std::vector<Card> State::cards |
The information on all the cards.
This vector also contains information on which card is in what set and which card they are with respect to their set. Consider the following example [card0, ..., card7] and we have a SET_SIZE of 4 and thus a NUM_SETS of 2 then the cards [card0, ..., card3] belong to set 0 and [card4, ..., card7] belong to set 1. So, in these examples card4 will be card 0 with respect to its own set and card7 will be card 3.
std::vector<Player> State::players |
std::vector<int> State::quartets |