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]);
Settings options(const int argc, const char **argv)
Parse the command line arguments and generate the settings from these.
bool Answer
An answer returned by a player. The answer is either true or false denoting he/she has or does not ha...
State init_state(const Settings &settings)
Initialize the starting state corresponding to the given settings.
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.
bool * valid_question(const Settings &settings, const State &state, const Question &question)
Check if the question asked is valid.