From 2388c57d5ecb6870e33edbaa36b3e7b452a9c5c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Wed, 5 Jun 2024 17:34:45 +0200 Subject: [PATCH] bugfix: parse score goal Boost parses uint8_t as chars, not as numbers, so 'unsigned int' is used for parsing instead. --- include/command_line_interface.h | 2 +- src/command_line_interface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/command_line_interface.h b/include/command_line_interface.h index 528fa9a..ddbba95 100644 --- a/include/command_line_interface.h +++ b/include/command_line_interface.h @@ -28,7 +28,7 @@ namespace Hanabi * to be winning. * If std::nullopt, then the maximum score of the game will be used. */ - boost::optional score_goal{}; + boost::optional score_goal{}; /** * Whether game_state_spec denotes a turn number or draw pile size. diff --git a/src/command_line_interface.cpp b/src/command_line_interface.cpp index 3e966db..42da3f6 100644 --- a/src/command_line_interface.cpp +++ b/src/command_line_interface.cpp @@ -242,7 +242,7 @@ namespace Hanabi "Turn 1 means no actions have been taken. ") ("draw-pile-size,d", bpo::value(&parms.game_state_spec), "Draw pile size of state to analyze.") ("score-goal,s" - , bpo::value>(&parms.score_goal) + , bpo::value>(&parms.score_goal) , "Score that counts as a win, i.e. is optimized for achieving. If unspecified, the maximum possible " "score will be used.") ("clue-modifier,c", bpo::value(), "Optional relative modification to the number of clues applied to "