Skip to content

This project is a simple implementation of the classic Hangman game using React.

Notifications You must be signed in to change notification settings

snehapatil2001/hanging-man-game

Repository files navigation

Hangman Game

Welcome to the Hangman game project! This project is a simple implementation of the classic Hangman game using React.

Description

Hangman is a word-guessing game where the player tries to guess a word by suggesting letters within a certain number of guesses. This project provides a simple UI for playing Hangman.

How to Play

  1. Clone this repository to your local machine.
  2. Install dependencies by running npm install.
  3. Run the project by executing npm run dev.
  4. Start playing Hangman!

Files

  • App.tsx: Main component that orchestrates the game.
  • HangmanDrawing.tsx: Component responsible for rendering the Hangman visual.
  • HangmanWord.tsx: Component to display the word to be guessed.
  • Keyboard.tsx: Component for the interactive keyboard used to guess letters.
  • wordList.json: JSON file containing the list of words used in the game.

Technologies Used

  • React: JavaScript library for building user interfaces.
  • TypeScript: A statically typed superset of JavaScript that adds optional types.
  • CSS Modules: CSS file localization.
  • npm: Package manager for Node.js.

About

This project is a simple implementation of the classic Hangman game using React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published