Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.1 KB

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.