Skip to content

Gone-Ruthwika/CodeAlpha_Task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CodeAlpha_Tasks

""" ๐ŸŽฎ Hangman Game (Python Console)

This is a simple terminal-based Hangman game built with Python. The player must guess a hidden word by entering letters one at a time. The game allows a maximum of 6 incorrect guesses.


๐Ÿ“Œ Features:

  • Random word selection from a predefined list
  • Displays correct guesses and tracks progress
  • Limits user to 6 wrong attempts
  • Input validation (only single letters allowed)
  • Friendly text-based interface

โ–ถ๏ธ How to Run:

  1. Install Python (if not already installed).
  2. Save the game code in a file named hangman.py.
  3. Open a terminal or command prompt.
  4. Run the script using: python hangman.py

๐Ÿ–ผ๏ธ Sample Output:

๐ŸŽฎ Welcome to Hangman Game!


Guess a letter: a โœ… Good guess! _ a _ _ _

Guess a letter: z โŒ Wrong guess! Attempts left: 5 _ a _ _ _


๐Ÿ“ File Structure:

hangman-game/ โ”œโ”€โ”€ hangman.py # Game code โ””โ”€โ”€ README.md # Project guide (optional)


๐Ÿ“„ License: This project is licensed under the MIT License. You are free to use, modify, and distribute it.


๐Ÿ™‹ Author: Your Name : G.Ruthwika

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages