Skip to content

pareshjoshij/CodeAlpha_HangmanGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Hangman Game - CodeAlpha Internship Project

This is a simple, text-based Hangman game created as a project for my CodeAlpha Python Programming internship. The program randomly selects a word from a predefined list, and the player has 6 attempts to guess the word, one letter at a time.

๐ŸŽฏ Project Goal

The goal is to create a simple text-based Hangman game where the player guesses a word one letter at a time.

โœจ Features

  • A predefined list of 5 words for the game.
  • The player is limited to 6 incorrect guesses.
  • Simple and clear console-based input and output.
  • Displays the current state of the word with underscores for unguessed letters.
  • Tracks and displays letters that have already been guessed.

๐Ÿš€ How to Run

  1. Clone the repository:
    git clone https://github.com/pareshjoshij/CodeAlpha_HangmanGame.git
  2. Navigate to the project directory:
    cd CodeAlpha_HangmanGame
  3. Run the Python script:
    python hangman.py

๐Ÿ› ๏ธ Key Concepts Used.

This project utilizes several core Python concepts as required by the task:

  • random module for word selection
  • while loops for game flow
  • if-else statements for game logic
  • string manipulation
  • list management for words and guessed letters

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages