fix(game): changed number of cards

This commit is contained in:
Kieran Kihn
2025-11-16 20:53:21 +08:00
parent 7e996931ef
commit 9e6ded8087

View File

@@ -81,10 +81,12 @@ namespace UNO::GAME {
for (const auto color : AllColors) { for (const auto color : AllColors) {
for (const auto type : AllTypes) { for (const auto type : AllTypes) {
if (color != CardColor::WILD && type != CardType::WILD && type != CardType::WILDDRAWFOUR) { if (color != CardColor::WILD && type != CardType::WILD && type != CardType::WILDDRAWFOUR) {
for (int i = 1 + (type == CardType::NUM0); i <= 2; i++) {
this->pushBack(color, type); this->pushBack(color, type);
} }
} }
} }
}
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
this->pushBack(CardColor::WILD, CardType::WILD); this->pushBack(CardColor::WILD, CardType::WILD);
this->pushBack(CardColor::WILD, CardType::WILDDRAWFOUR); this->pushBack(CardColor::WILD, CardType::WILDDRAWFOUR);