Skip to content

A simple Hangman game built using Python, where the player guesses letters to reveal a hidden word.

Notifications You must be signed in to change notification settings

Ramlah7/CodeAlpha_Hangman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•น๏ธ Hangman Game

Welcome to the Hangman Game! This is a classic word-guessing game built using Python, where players have to guess the hidden word by choosing letters.

๐ŸŽฎ Features

๐Ÿ”  Random Word Selection from a predefined list of words.
๐Ÿ’ก 10 chances to guess the word correctly.
๐Ÿ“Ÿ Interactive command-line game with real-time feedback on your guesses.
๐Ÿ“ How to Play
๐Ÿงฉ The computer selects a random word from the list.
โ“ You guess one letter at a time.
โœ… If the letter is in the word, it will be revealed in its correct position.
๐Ÿšซ You have 10 chances to guess the word. Each wrong guess reduces your remaining tries.
๐Ÿ† Win by guessing the word before your tries run out!
๐Ÿš€ How to Run the Game

Prerequisites

๐Ÿ Python 3.x

Steps to Run

Clone the repository:
bash
Copy code
git clone https://github.com/your-username/hangman-game.git
Navigate to the project directory:
bash
Copy code
cd hangman-game
Run the script:
bash
Copy code
python hangman.py

๐ŸŽฅ Game Preview

Here's what the game looks like:

Word: _ _ a _ _
Tries left: 9
Guess a letter:
Keep guessing letters until you figure out the word or run out of tries!

About

A simple Hangman game built using Python, where the player guesses letters to reveal a hidden word.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages