40 <<
"set size = " << settings.
SET_SIZE <<
", "
41 <<
"num sets = " << settings.
NUM_SETS <<
", "
42 <<
"num players = " << settings.
NUM_PLAYERS <<
"." << std::endl;
51 out <<
"Onturn: " << state.
onturn << std::endl
52 <<
"Cards: " << state.
cards << std::endl
53 <<
"Players: " << state.
players << std::endl
54 <<
"Quartets: " << state.
quartets << std::endl;
64 <<
"player = " << question.
player <<
", "
65 <<
"set = " << question.
set <<
", "
66 <<
"card = " << question.
card <<
"." << std::endl;
std::ostream & operator<<(std::ostream &out, const Card &card)
Print the information of a card struct.
This file defines print operator headers for custom structs and a template for printing a vector....
This file defines the structs for a question and typedef of an answer.
This file defines the settings struct.
This file defines the structs for a card, player and a game state, plus a state initialize and copy f...
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.
A question asked by a player. The player asks another player for a specific card from a certain set.
int set
The set the card which is asked belongs to.
int player
The player the question is asked to.
int card
The card in the set which is asked for.
The settings which characterize a game.
const int NUM_SETS
The number of sets.
const int SET_SIZE
The size of one set, aka the number of cards in one set.
const int NUM_PLAYERS
The number of players playing the 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.