Match: The card game
By Casey Raymondson
Game rules
This is a card game for two players. The deck consists of 36 cards,
numbered 2 through 10. The suits consist of red and black squares and
circles. The cards are shuffled and divided between the two players. The players keep their cards in a stack and do not have the option to look at or reorder them. Each player takes turns placing the top card from his stack into the middle of the screen. You play a card by clicking on the "Play" button, and only the player whose turn it is will have his button active. This continues until the card being played has the same number as the previous card, regardless of suit. When this happens, the person who just played should click on the "Pick up" checkbox, which takes all of
the cards from the middle and shuffles them into his own stack. If one
player has no cards left and he needs to play, the cards in the middle
are shuffled, then divided between the two players. Both players then
shuffle their decks to add some randomness to the game. A player wins
when he has all of the cards.