Turn a strict rule into quick play
Every pair of cards must share exactly one symbol. I built the deck generator and two-player interface together, so the mathematical guarantee becomes a fast, readable interaction rather than a separate technical demonstration.
One match in every pair
Validate the generated deck
The main deck has 57 cards with eight symbols each. Every possible pair must share exactly one symbol, and the rules layer checks that relationship before gameplay. A shorter variant has 31 cards with six symbols each.
Keep competition fair
Each player has a visible selector and separate controls. A short transition lock prevents a keypress during a card change from becoming an unfair error; repeated wrong answers affect that player’s cooldown.
Prepare the next interaction
Moving a selector updates its position without rebuilding the card’s page elements. Replacement cards are prepared in advance, keeping the interaction focused on the players’ next choice.
What this work demonstrates
I developed the deck generator, validation and two-player interface together. The result connects a strict mathematical constraint to fast, readable play, with careful handling of simultaneous input and card changes.

