adjust size of static vector

This commit is contained in:
Maximilian Keßler 2023-08-10 14:07:18 +02:00
parent b1963967a7
commit 78b3335414
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -252,10 +252,10 @@ private:
std::list<CardMultiplicity> _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<boost::container::static_vector<player_t, max_card_duplicity>, 10> _card_positions_draw;
boost::container::static_vector<Card, 10> _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<Card, 30> _good_cards_draw;
// This will indicate whether cards that were in hands initially still are in hands
std::bitset<num_players * hand_size> _card_positions_hands;