diff --git a/gamedata.cpp b/gamedata.cpp index 6474bac..11adaa6 100644 --- a/gamedata.cpp +++ b/gamedata.cpp @@ -225,11 +225,17 @@ bool GameData::endgame() if (get_colour(PLAYER1_COLOUR).empty()) { player = WIN2; +#ifdef DEBUG + fprintf(stderr, "debug: Gamedata::endgame(): player 2 wins\n"); +#endif return true; } if (get_colour(PLAYER2_COLOUR).empty()) { player = WIN1; +#ifdef DEBUG + fprintf(stderr, "debug: Gamedata::endgame(): player 1 wins\n"); +#endif return true; }