Skip to content

tirlarim/mastermind-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind iOS Game

Overview

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.

Game Rules

  • 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.

Features

  • Colorful graphics and responsive design.
  • Feedback provided instantly after each guess.

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/tirlarim/mastermind-swift
  1. Navigate to the project directory and open the project in Xcode:
cd Mastermind-iOS
open Mastermind.xcodeproj
  1. Build game by press cmd+R in Xcode.
  2. Run it in your preferred iOS simulator or on a physical device.

Contributing

Contributions to the Mastermind game are welcome! Here's how you can contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your_new_feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/your_new_feature).
  5. Create a new Pull Request.

License

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!

About

A simple iOS game for TUKE

Resources

License

Stars

Watchers

Forks

Languages