Hangman Project is a simple iOS game developed in Swift. It follows the traditional rules of the Hangman game, where the player needs to guess a word by suggesting letters one by one. The player has a limited number of attempts before the hangman is completed.
-
Interactive UI: The game provides a user-friendly interface, allowing players to easily input their guesses and interact with the hangman's progress.
-
Random Word Selection: The game randomly selects words from a predefined list, ensuring a unique experience with each round.
-
Win and Lose Tracking: The app keeps track of the player's wins and losses, providing a challenge to improve their guessing skills.
-
Play Again: After winning or losing a game, players have the option to start a new game with a different word.
- Clone the repository:
git clone https://github.com/s-shaligram/Hangman
-
Open the project in Xcode.
-
Build and run the app on a simulator or a physical device.
-
The game starts with a random word being chosen.
-
The word is represented by a series of dashes (one for each letter) indicating its length.
-
The player needs to guess letters by tapping on the corresponding buttons on the on-screen keyboard.
-
If the guessed letter is part of the word, all occurrences of that letter will be revealed.
-
If the guessed letter is not part of the word, the hangman's body parts will start to appear on the screen one by one.
-
The game continues until the player either guesses the word correctly or the hangman is completed.
-
After the game ends (win or lose), the player can choose to play again.
- This project was developed using Swift 5 and is designed to run on iOS devices.
- The game assumes that the player interacts with the on-screen keyboard to make letter guesses.
This project was developed by Sameer Shaligram (https://github.com/s-shaligram) and Ghanashyam Shingate (https://github.com/GhanashyamShingate). Contributions are welcome! Feel free to open issues and submit pull requests.