From 78b33354145bdcfb667fd94c4e34f599263c4ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Thu, 10 Aug 2023 14:07:18 +0200 Subject: [PATCH] adjust size of static vector --- game_state.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game_state.h b/game_state.h index 8e1451b..0fc759f 100644 --- a/game_state.h +++ b/game_state.h @@ -252,10 +252,10 @@ private: std::list _draw_pile{}; std::uint8_t _endgame_turns_left{}; - // This will save the card positions of all cards that are in the draw pile when we start backtracking - // TODO: currently, we support at most 10 useful different cards in draw pile + // This will save the card positions of all cards that are in the draw pile when we start backtracking. boost::container::static_vector, 10> _card_positions_draw; - boost::container::static_vector _good_cards_draw; + // Note that 30 cards here is enough for all standard decks, since there are ot most 6 suits with 5 unique cards each. + boost::container::static_vector _good_cards_draw; // This will indicate whether cards that were in hands initially still are in hands std::bitset _card_positions_hands;