Welcome to the iOS version of the classic code-breaking game Mastermind, developed using Swift and UIKit. This game challenges players to guess the secret color code in the fewest attempts possible. Each guess is met with feedback to help narrow down the possibilities.
- The game consists of a sequence of colored pegs hidden from the player.
- On each turn, the player guesses the color sequence.
- Feedback for each guess is provided as follows:
- Green: Correct color in the correct position.
- Blue: Correct color in the wrong position.
- White: Incorrect color and position.
The objective is to guess the right color sequence in as few guesses as possible.
- Colorful graphics and responsive design.
- Feedback provided instantly after each guess.
- Clone this repository to your local machine:
git clone https://github.com/tirlarim/mastermind-swift
- Navigate to the project directory and open the project in Xcode:
cd Mastermind-iOS
open Mastermind.xcodeproj
- Build game by press cmd+R in Xcode.
- Run it in your preferred iOS simulator or on a physical device.
Contributions to the Mastermind game are welcome! Here's how you can contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your_new_feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your_new_feature
). - Create a new Pull Request.
This project is licensed under the GNU GENERAL PUBLIC LICENSE V3 - see the LICENSE file for details. Feel free to modify the content to better fit your project specifics or personal preferences!