From 43477b1023be6ffca0ad87384ae8f877642dd2ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 12 Jan 2024 14:59:47 +0100 Subject: [PATCH] better state printing: ignore trash --- include/game_state.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/game_state.hpp b/include/game_state.hpp index 9ce759f..d755c9c 100644 --- a/include/game_state.hpp +++ b/include/game_state.hpp @@ -294,7 +294,11 @@ namespace Hanabi os << "["; for (hand_index_t index = 0; index < hand.size(); index++) { - os << hand[index]; + if (is_trash(hand[index])) { + os << "kt"; + } else { + os << hand[index]; + } if (is_critical(hand[index])) { os << "!"; }