Skip to content

ashishacharjee/CodeAlpha_HangmanGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Hangman Game 🎯

A simple text-based Hangman game built with Python as part of the CodeAlpha Python Programming Internship.

How to Run

python hangman.py

No external libraries needed. Works with Python 3.x out of the box.

How to Play

  • A random word is chosen from a built-in list
  • You guess one letter at a time
  • You have 6 incorrect guesses before the game ends
  • The ASCII hangman drawing updates after each wrong guess
  • At the end, you can choose to play again

Features

  • ASCII art gallows that builds up with each wrong guess
  • Tracks letters you've already tried
  • Play again option at the end
  • Clean console output

Concepts Used

  • random module
  • while loops
  • if-else conditions
  • Strings and lists
  • Functions

Project Structure

CodeAlpha_HangmanGame/
│
└── hangman.py

Internship Details

  • Organization: CodeAlpha
  • Domain: Python Programming
  • Student ID: CA/DF1/75758

About

Classic Hangman with ASCII art gallows that updates after each wrong guess. 5 built-in words, 6 lives, play-again loop at the end. Run it with python hangman.py.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages