This is a simple Hangman game implemented in C# using Windows Forms. The game allows the player to guess letters to uncover a hidden word. The player has a limited number of incorrect guesses before losing the game.
- Randomly selects a word from an online word list
- Displays the word as a series of underscores representing the hidden letters
- Allows the player to enter letters and checks if they are present in the word
- Updates the display to reveal correctly guessed letters
- Keeps track of incorrect guesses and displays a hangman figure for each incorrect guess
- Provides a hint after a certain number of incorrect guesses
- Notifies the player when they win or lose the game
- Allows the player to restart the game
To run the Hangman game, follow these steps:
- Clone the repository or download the source code.
- Open the solution file (
Hangman Game.sln
) in Visual Studio. - Build the solution to restore NuGet packages and compile the code.
- Run the application by pressing F5 or clicking the "Start" button in Visual Studio.
Get started with the fun right away!
Download: Hangman.exe for Windows
The Hangman game has the following dependencies:
- .NET Framework 4.7.2 or later
- Windows Forms
Anas Elhaag
Nada Elmokdem
This project is licensed under the MIT License.