]> git.seodisparate.com - RockPaperScissorsDuel/commitdiff
Comment out debug prints
authorStephen Seo <seo.disparate@gmail.com>
Tue, 3 Jan 2023 11:00:04 +0000 (20:00 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 3 Jan 2023 11:00:04 +0000 (20:00 +0900)
src/game.cc

index 495f18112e72f8777cade554a9d97e4348a0ac8f..a4dc25fb883fa1be033ea253b02ba27103f60a49 100644 (file)
@@ -34,19 +34,20 @@ void Game::update_state(const char *playerOne, const char *playerTwo,
                         char second_second, char second_third, bool first_ready,
                         bool second_ready, int pos, int matchup_idx) {
   // TODO DEBUG
-  if (std::strcmp(playerOne, currentPlayer) == 0) {
-    std::clog << "update_state:\n"
-              << "  is p1: "
-              << (std::strcmp(playerOne, currentPlayer) == 0 ? "true" : "false")
-              << std::endl
-              << "  p1: " << first_first << ", " << first_second << ", "
-              << first_third << "\n  p2: " << second_first << ", "
-              << second_second << ", " << second_third << "\nfirst is "
-              << (first_ready ? "ready" : "NOT ready") << "\nsecond is "
-              << (second_ready ? "ready" : "NOT ready") << "\npos: " << pos
-              << " matchup_idx: " << matchup_idx << std::endl;
-    std::clog << "flags: " << flags.to_string().substr(32 - 13) << std::endl;
-  }
+  // if (std::strcmp(playerOne, currentPlayer) == 0) {
+  //  std::clog << "update_state:\n"
+  //            << "  is p1: "
+  //            << (std::strcmp(playerOne, currentPlayer) == 0 ? "true" :
+  //            "false")
+  //            << std::endl
+  //            << "  p1: " << first_first << ", " << first_second << ", "
+  //            << first_third << "\n  p2: " << second_first << ", "
+  //            << second_second << ", " << second_third << "\nfirst is "
+  //            << (first_ready ? "ready" : "NOT ready") << "\nsecond is "
+  //            << (second_ready ? "ready" : "NOT ready") << "\npos: " << pos
+  //            << " matchup_idx: " << matchup_idx << std::endl;
+  //  std::clog << "flags: " << flags.to_string().substr(32 - 13) << std::endl;
+  //}
   // TODO handle changing choices from r/p/s to w/l and etc.
   if (playerOne) {
     this->playerOne = playerOne;
@@ -313,7 +314,8 @@ void Game::update_impl() {
     opponentPicked[1] = 0;
     opponentPicked[2] = 0;
 
-    std::clog << "flags: " << flags.to_string().substr(32 - 13) << std::endl;
+    // TODO DEBUG
+    // std::clog << "flags: " << flags.to_string().substr(32 - 13) << std::endl;
   }
 }