Skip to content

y-singh09/Hangman-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hangman Game

Overview

Hangman is a classic word-guessing game where the objective is to guess a hidden word, one letter at a time. This implementation of Hangman is a simple web-based version using HTML, CSS, and JavaScript.

Features

  • Interactive web interface
  • Random word selection from a predefined list
  • Tracking of incorrect guesses
  • Display of current word state (with guessed letters revealed and unknown letters as underscores)
  • Win/Lose detection and notification

Getting Started

Prerequisites

  • A web browser (e.g., Chrome, Firefox)

Installation

  1. Clone the repository to your local machine:
    git clone https://github.com/y-singh09/Hangman-game.git
  2. Navigate to the project directory:
    cd hangman-game

ScreenShots

Hangman Screenshot Hangman Screenshot Hangman screenshot Hangman Screenshot

Running the Game

  1. Open index.html in your web browser to start the game.

How to Play

  1. The game will display a word with underscores representing each letter of the word.
  2. Guess letters one at a time by clicking on the alphabet buttons.
  3. If the guessed letter is in the word, it will be revealed in its correct positions.
  4. If the guessed letter is not in the word, it will be added to the list of incorrect guesses, and the hangman drawing will be updated.
  5. The game continues until you either guess the word correctly or run out of attempts.

About

This repository contains the source code for a cool and interesting Hangman game developed using HTML, CSS, and JavaScript. The game is easy to play and the can be made by anyone with these codes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors