Set is an implementation of the popular card game "Set" using SwiftUI.
Cards are automatically resized to fit the screen. Animations deal the cards onto the table and discard them when a match occurs.
Set is a pattern recognition card game where players try to identify a "set" of three cards that satisfy certain criteria. Here are the basic rules:
- Deck: The game consists of a deck of 81 unique cards. Each card has four features: symbol (rectangle, diamond, or oval), color (red, green, or purple), number (1, 2, or 3), and shading (solid, transparent, or open).
- Objective: The goal is to find sets of three cards that, for each feature, are either all the same or all different. For example, three cards with the same symbol but different colors would form a valid set.
- Gameplay: Initially, 12 cards are dealt face-up on the table. Players take turns finding sets and announcing them. When a set is found, the player removes those cards from the table and replaces them with new cards from the deck. If no sets are available, additional cards are dealt from the deck.
- Scoring: Players earn points for finding sets. At the end of the game, the player with the highest score wins.