Added debug statements for endgame

This commit is contained in:
Anna Rose 2011-06-24 22:36:42 -04:00
parent ed46a272b8
commit ed0d8c5e26

View File

@ -225,11 +225,17 @@ bool GameData::endgame()
if (get_colour(PLAYER1_COLOUR).empty()) if (get_colour(PLAYER1_COLOUR).empty())
{ {
player = WIN2; player = WIN2;
#ifdef DEBUG
fprintf(stderr, "debug: Gamedata::endgame(): player 2 wins\n");
#endif
return true; return true;
} }
if (get_colour(PLAYER2_COLOUR).empty()) if (get_colour(PLAYER2_COLOUR).empty())
{ {
player = WIN1; player = WIN1;
#ifdef DEBUG
fprintf(stderr, "debug: Gamedata::endgame(): player 1 wins\n");
#endif
return true; return true;
} }