Quaternity
|
This file defines function headers for functions that can check if a question or state is valid. More...
Go to the source code of this file.
Functions | |
bool * | valid_question (const Settings &settings, const State &state, const Question &question) |
Check if the question asked is valid. More... | |
This file defines function headers for functions that can check if a question or state is valid.
Definition in file validate.h.
Check if the question asked is valid.
Check if the values (player, set, card) are all within the bounds they can be. Additionally check if the player whom a question is asked has at least one card, check that the question is not pointed towards oneself and check that we do not ask for a card from a quartet. We also make sure that there is at least one valid answer possible.
Definition at line 89 of file validate.cpp.