CodeBreaker is an iOS app I built from scratch as part of my learning journey through Stanford's CS193p β Developing Apps for iOS (Spring 2025) course. The project explores core concepts like declarative UIs with SwiftUI, data flow and state management, animations, and data persistence with SwiftData.
Game Overview: CodeBreaker is a code-breaking puzzle game inspired by the classic Mastermind board game. Instead of jumping straight into gameplay, players can first customize their experienceβchoosing difficulty, colors, and game modes. Once ready, they attempt to guess a secret sequence of colored pegs. After each guess, feedback pins indicate proximity to the solution, helping players progressively narrow down the correct combination.
| Game List | Game Play | Game Editor |
|---|---|---|
![]() |
![]() |
![]() |
- π§± SwiftUI Fundamentals
- π State Management
- π Layout System
- π¨ Animation & Transitions
- β±οΈ Swift Protocols
- π Navigation
- π± Adaptive Layouts
- βοΈ Forms
- πΎ SwiftData
- π§΅ Concurrency
- π― Custom Shapes & Gestures
- π§ Alternative Persistence Data
-
Clone the repository
git clone https://github.com/KusalPriyanka/codebreaker.git cd codebreaker -
Open in Xcode
open codebreaker.xcodeproj
-
Select a simulator or device in the Xcode toolbar
-
Press
β + Rto build and run
Requirements: Xcode 26+, iOS 26.0+ simulator or device


