🧠 Memory Game Rules: Why Are Some Options Unavailable?
In this memory game, you choose two things:
- A grid size (like 4×4 or 6×6)
- A match count (how many of the same card make a match — like 2 for a pair, 3 for a trio, etc.)
To work properly, the total number of cards (grid size × grid size) must be divisible by the match count.
❌ Example: 13×13 with match-3
13 x 13 = 169 cards
169 ÷ 3 = 56.33 → Not a whole number → ❌ doesn’t work
✅ Example: 6×6 with match-3
6 x 6 = 36 cards
36 ÷ 3 = 12 → ✅ 12 full sets of 3 cards
We gray out or disable match options that don’t divide evenly into the total card count.
This makes sure every card has a match, and the game stays fair and winnable.
Back to Game