We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 346e2d8 commit 2983b0eCopy full SHA for 2983b0e
source/games/uno/backend/UnoDeck.hx
@@ -59,7 +59,13 @@ class UnoDeck {
59
}
60
61
while (cards.length < 108) {
62
- for (i in 1...10) {
+ // Fill remaining cards with number cards to reach 108 cards
63
+ // This is just to ensure the deck has 108 cards if colors are small.
64
+ for (color in colors) {
65
+ // Add one 0 card for each color
66
+ cards.push(new UnoCard(color, NUMBER, 0));
67
+
68
+ for (i in 1...10) {
69
cards.push(new UnoCard(color, NUMBER, i));
70
71
0 commit comments