13 int main(
int argc,
char **argv)
18 std::cout << settings;
28 std::cout << question;
30 }
while (valid_answers == NULL);
36 std::cout <<
"Answer: " << answer <<
"." << std::endl;
37 }
while (!valid_answers[answer]);
This file defines print operator headers for custom structs and a template for printing a vector....
int main(int argc, char **argv)
Settings options(const int argc, const char **argv)
Parse the command line arguments and generate the settings from these.
This file defines the command line argument parsing function header.
bool Answer
An answer returned by a player. The answer is either true or false denoting he/she has or does not ha...
This file defines the settings struct.
State init_state(const Settings &settings)
Initialize the starting state corresponding to the given settings.
This file defines the structs for a card, player and a game state, plus a state initialize and copy f...
A question asked by a player. The player asks another player for a specific card from a certain set.
The settings which characterize a game.
std::vector< int > quartets
The information of who has a certain quartet.
void update_state(const Settings &settings, State &state, const Question &question, const Answer &answer)
Update the state of the game according to the question asked and the answer which is given.
This file defines the state update function headers.
bool * valid_question(const Settings &settings, const State &state, const Question &question)
Check if the question asked is valid.
This file defines function headers for functions that can check if a question or state is valid.