remove unneccessary prints

This commit is contained in:
Maximilian Keßler 2024-01-12 15:19:22 +01:00
parent 8398173939
commit 11043d51c8
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -1,7 +1,6 @@
#include "parse_game.h" #include "parse_game.h"
#include "myassert.h" #include "myassert.h"
#include <iostream>
namespace Parsing namespace Parsing
{ {
@ -116,17 +115,13 @@ namespace Parsing
boost::json::value const * options = game_json.if_contains("options"); boost::json::value const * options = game_json.if_contains("options");
Hanabi::clue_t num_clues_gained_on_discard = Hanabi::clue_t(1); Hanabi::clue_t num_clues_gained_on_discard = Hanabi::clue_t(1);
if (options != nullptr) { if (options != nullptr) {
std::cout << "found options";
boost::json::value const * variant = options->as_object().if_contains("variant"); boost::json::value const * variant = options->as_object().if_contains("variant");
if (variant != nullptr) { if (variant != nullptr) {
std::cout << "found variant: " << variant->as_string();
if (variant->as_string().find("Clue Starved") != std::string::npos) { if (variant->as_string().find("Clue Starved") != std::string::npos) {
num_clues_gained_on_discard = Hanabi::clue_t (1) / Hanabi::clue_t (2); num_clues_gained_on_discard = Hanabi::clue_t (1) / Hanabi::clue_t (2);
std::cout << "found cs game";
} }
} }
} }
std::cout << num_clues_gained_on_discard;
return {deck, actions, num_suits, num_players, num_clues_gained_on_discard }; return {deck, actions, num_suits, num_players, num_clues_gained_on_discard };
} }