Welcome to ApplePie, a fun and simple word-guessing game written in Swift! This project is part of a Swift programming exercise to understand the fundamentals of UIKit, MVC architecture, and user interaction in iOS development.
ApplePie is a word-guessing game similar to Hangman:
- The player is given a hint (e.g., number of letters in the word).
- The player selects letters to guess the word.
- For each wrong guess, a slice of the apple pie disappears!
- The game ends when the player guesses the word correctly or runs out of guesses.
- Simple and intuitive UI
- Built using UIKit
- Follows MVC (Model-View-Controller) design pattern
- Teaches basics of Swift logic and event handling
(Insert screenshots of the game here if available)
ViewController.swift: Handles user interactions and updates the UI.Game.swift: The model that stores game logic (current word, guessed letters, etc.).assets: Contains UI assets like buttons and images for the pie slices.
- Xcode 14 or later
- iOS 15.0+
- Swift 5+
- Clone the repository:
git clone https://github.com/BobKimani/applePie.git