Skip to content

anvithagowda098/nsoc-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IIT Patna Hangman Game

https://nsoc-game.vercel.app

Description

This is a web-based Hangman game themed around IIT Patna. Players guess letters to complete a word related to the institute, with a limited number of incorrect guesses allowed before the game ends.

Features

  • Responsive design that works on desktop and mobile devices
  • Words related to IIT Patna culture and campus life
  • Visual hangman display that updates with each incorrect guess
  • On-screen keyboard for letter input
  • Game over modal with win/lose message and option to play again

Technologies Used

  • HTML5
  • CSS3
  • JavaScript

How to Play

  1. Open the game in a web browser
  2. A random word related to IIT Patna will be selected
  3. Guess letters by clicking on the on-screen keyboard
  4. Correct guesses will reveal the letter in the word
  5. Incorrect guesses will add a part to the hangman figure
  6. Win by guessing the entire word before the hangman is completed
  7. Lose if the hangman figure is fully drawn before the word is guessed

Installation

  1. Clone the repository: git clone https://github.com/your-username/iit-patna-hangman.git
  2. Navigate to the project directory: cd iit-patna-hangman
  3. Open index.html in your web browser