better state printing: ignore trash

This commit is contained in:
Maximilian Keßler 2024-01-12 14:59:47 +01:00
parent e18937c599
commit 43477b1023
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -294,7 +294,11 @@ namespace Hanabi
os << "["; os << "[";
for (hand_index_t index = 0; index < hand.size(); index++) for (hand_index_t index = 0; index < hand.size(); index++)
{ {
if (is_trash(hand[index])) {
os << "kt";
} else {
os << hand[index]; os << hand[index];
}
if (is_critical(hand[index])) { if (is_critical(hand[index])) {
os << "!"; os << "!";
} }