Skip to content

sailorworks/swift25

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AR Mastermind

๐Ÿ”ฅ Classic Mastermind, Reimagined in AR!

This AR game takes the classic Mastermind puzzle and gives it a MAJOR glow-up! Imagine playing with a game board that feels like it's actually sitting in your room โ€“ it's like having the game come to life right in front of you.


๐Ÿš€ Features

โœ… Augmented Reality Gameplay โ€“ Play Mastermind in your real-world space using AR technology.
โœ… Interactive 3D Board โ€“ Move, place, and interact with game pieces seamlessly.
โœ… Sleek & Responsive UI โ€“ Smooth animations, intuitive controls, and engaging feedback.
โœ… Optimized for iPadOS โ€“ Built for an immersive experience on Apple's latest AR-ready devices.


๐Ÿ› ๏ธ Tech Stack

SwiftUI โ€“ The UI Powerhouse ๐ŸŽจ

SwiftUI handles all the visible elements in the game:

  • Dynamic UI updates โ€“ Using @State, @StateObject, and @Published for seamless changes.
  • Timers & Alerts โ€“ Countdown animations and pop-up messages for feedback.
  • Modern, efficient design โ€“ Clean UI that just works.

RealityKit โ€“ The AR MVP โœจ

RealityKit powers all the AR interactions:

  • Anchored game board โ€“ The board stays fixed in the real world, not just floating randomly.
  • Intuitive interactions โ€“ Tap and move game pieces with ease.
  • High-quality rendering โ€“ Crisp visuals for an ultra-realistic experience.
  • Seamless tracking โ€“ Keeps track of all game pieces and their positions.

๐ŸŽฎ How to Play

  1. Launch the app โ€“ The game board appears in your space via AR.
  2. Guess the code โ€“ Drag and drop colored pegs into the slots.
  3. Submit & Get Feedback โ€“ The app will tell you which pegs are correct or misplaced.
  4. Crack the code! โ€“ Use logic and deduction to win before time runs out.

๐Ÿ“Œ Installation & Setup

  1. Download the project source code and open it in Swift Playgrounds on your iPad.
  2. Compile and launch the app.
  3. Dive into the game and start playing!

๐Ÿ“œ License

This project is licensed under the MIT License.


This is a project submitted for swift student challenge 2025.

About

this is my swift 25' submission

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages