Skip to content

paulafredo/jeux_du_pendu

Repository files navigation

Hangman Game

This is a simple console-based implementation of the Hangman game in C#. The game allows the player to guess a word by entering one letter at a time. The player has a limited number of attempts (6 lives) to guess the word correctly before losing the game.

Features

  • Randomly selects a word from a list of words stored in a text file.
  • Displays underscores for unguessed letters and correctly guesses letters.
  • Tracks remaining lives for incorrect guesses.
  • Shows an ASCII representation of a hanging figure based on the remaining lives.
  • Allows the player to replay the game.

Prerequisites

Before running the game, ensure that you have the following:

  • Visual Studio or any other C#-compatible IDE.
  • .NET SDK version 6.0 or higher.

Installation

  1. Clone or download this repository to your local machine.

    git clone https://github.com/paulafredo/jeux_du_pendu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages