make pace variable signed to detect game states out of pace
This commit is contained in:
parent
548bb371ff
commit
7bd910059c
2 changed files with 3 additions and 3 deletions
|
@ -242,7 +242,7 @@ private:
|
|||
size_t _initial_draw_pile_size;
|
||||
|
||||
// further statistics that we might want to keep track of
|
||||
uint8_t _pace{};
|
||||
int8_t _pace{};
|
||||
uint8_t _score{};
|
||||
|
||||
std::uint64_t _enumerated_states {};
|
||||
|
|
4
main.cpp
4
main.cpp
|
@ -74,7 +74,7 @@ void check_games(unsigned num_players, unsigned max_draw_pile_size, unsigned fir
|
|||
file << "Game " << game_id << ": " << chance << std::endl;
|
||||
file << *game << std::endl << std::endl;
|
||||
}
|
||||
std::cout << "Finished game " << game_id << ": " << chance << std::endl;
|
||||
std::cout << "Finished game " << game_id << " with draw pile size " << draw_pile_size << ": " << chance << std::endl;
|
||||
|
||||
total_chance += chance;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ int main(int argc, char *argv[]) {
|
|||
#ifndef NDEBUG
|
||||
test();
|
||||
#endif
|
||||
check_games(4, 9);
|
||||
check_games(3, 10);
|
||||
if(argc == 3) {
|
||||
std::string game (argv[1]);
|
||||
std::string turn (argv[2]);
|
||||
|
|
Loading…
Reference in a new issue