A fast-paced, logic-driven iOS game where players go head-to-head with the CPU in a classic match of Rock, Paper, Scissors — with a twist. Instead of simply playing to win, the CPU randomly prompts the player to either win or lose the round, challenging them to think beyond instinct.
- 🎮 Interactive Gameplay – Player chooses Rock, Paper, or Scissors to match the CPU's prompt.
- 🧠 Strategic Decision Making – CPU randomly asks you to either win or lose, forcing creative choices.
- 🧾 Score Tracking – Total score out of 10 rounds.
- ✨ Smooth Animations & Responsive UI – Built with SwiftUI for a sleek and consistent experience.
- 🔁 Restart Game – Automatically resets after 10 rounds.
| CPU Prompting | Game Over |
|---|---|
:![]() |
![]() |
|
- CPU picks one of:
["Rock", "Paper", "Scissors"] - CPU then randomly prompts either:
"WIN"or"LOSE" - Based on the CPU's pick and prompt, the player must respond with the correct move to either defeat or be defeated.
- Example:
- CPU picks Rock, prompts WIN → player must pick Paper
- CPU picks Paper, prompts LOSE → player must pick Rock
- Xcode 15+
- iOS 17+
- Swift 5.9+
- Clone the repo:
git clone https://github.com/yourusername/rock-paper-scissors-ios.git
- Open the .xcodeproj file in Xcode.
- Build and run on a simulator or device.
Add haptic feedback and sound effects Enhance visual feedback with animations Include a scoreboard history Add difficulty levels or a multiplayer mode
This project is licensed under the MIT License.
Built using SwiftUI Inspired by Paul Hudson’s 100 Days of SwiftUI

