Skip to content

Jyotsna-Shrestha/Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game

A simple Hangman game developed using Python. In this guessing game, the player must guess a word by suggesting letters within a certain number of attempts.

Getting Started

Prerequisites

python

Setup

  1. Clone the repository
  2. Install Python in your system if you don't already have it.
  3. Select the directory Hangman in terminal/command line environment.
  4. Run the game using the following command:
python3 main.py

How to Play

  1. The game will randomly select a word to guess, which is represented by a row of dashes representing each letter of the word.
  2. You have a total of six attempts to guess the letters in the word.

  3. If the guessed letter is in the word, it will appear in all its correct positions in place of the dashes. If not, you will lose one attempt and one element of a hanged stick figure will be added on the screen.
  4. Continue guessing letters until you run out of attempts or fill in all the blank spaces.
  5. If you guess the word within the given attempts, you win! Otherwise, you lose the game.


About

A simple Hangman Game developed in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages