/Hangman-Game

Primary LanguageC#MIT LicenseMIT

Hangman Game

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.

Features

  • 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

Getting Started

To run the Hangman game, follow these steps:

  1. Clone the repository or download the source code.
  2. Open the solution file (Hangman Game.sln) in Visual Studio.
  3. Build the solution to restore NuGet packages and compile the code.
  4. Run the application by pressing F5 or clicking the "Start" button in Visual Studio.

OR

Get started with the fun right away!

Dependencies

The Hangman game has the following dependencies:

  • .NET Framework 4.7.2 or later
  • Windows Forms

Contributors

Anas Elhaag

Nada Elmokdem

License

This project is licensed under the MIT License.