From ed0d8c5e26c55522313e590f661931274ceac826 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 24 Jun 2011 22:36:42 -0400 Subject: [PATCH] Added debug statements for endgame --- gamedata.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; }