Skip to content

shreejee1210/CodeAlpha_HangmanGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Hangman Game (Python)

Project Description

This is a simple Hangman Game program written in Python.

In this game, the computer randomly selects a word from a predefined list, and the player tries to guess the word one letter at a time. The player has a maximum of 6 incorrect guesses to identify the word correctly.

This project helps beginners understand Python fundamentals such as loops, conditions, lists, strings, and the random module.


Objective

The main objective of this project is to help students understand:

  • While loop
  • If-else conditions
  • Lists and Strings
  • Random module
  • User input and output

Tools Used

  • Programming Language: Python
  • Module Used: random
  • Editor: Visual Studio Code

How to Run the Program

  1. Install Python on your system.

  2. Open the file hangman.py in VS Code.

  3. Open Terminal in VS Code.

  4. Run the program using:

    python hangman.py

  5. Start guessing the letters of the hidden word.


Project Files

CodeAlpha_HangmanGame/ │ ├── hangman.py └── README.md


Sample Output

Welcome to Hangman Game

Word: _ _ _ _ _ _

Enter a letter: p

Word: p _ _ _ _ _

Enter a letter: x

Wrong Guess! Remaining Attempts: 5


Developer Details

Name: Shree Jee Gupta

Class: B.Tech

Branch: Electronics and Communication Engineering


Internship

CodeAlpha Python Programming Internship


Note

This project is created for learning and internship purposes.

About

Hangman Game developed using Python for CodeAlpha Internship.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages