Skip to content

An implementation of Set using Swift UI. Homework for Stanford CS193p

Notifications You must be signed in to change notification settings

colson0804/SetCardGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SetCardGame

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.

Game Rules

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:

  1. 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).
  2. 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.
  3. 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.
  4. Scoring: Players earn points for finding sets. At the end of the game, the player with the highest score wins.

About

An implementation of Set using Swift UI. Homework for Stanford CS193p

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages