make pace variable signed to detect game states out of pace

This commit is contained in:
Maximilian Keßler 2023-08-08 00:44:50 +02:00
parent 548bb371ff
commit 7bd910059c
Signed by: max
GPG Key ID: BCC5A619923C0BA5
2 changed files with 3 additions and 3 deletions

View File

@ -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 {};

View File

@ -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]);