https://github.com/alexandrabaturina/react-hangman-game
https://github.com/alexandrabaturina/react-hangman-game
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexandrabaturina/react-hangman-game
- Owner: alexandrabaturina
- Created: 2022-11-03T01:18:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T04:50:14.000Z (over 2 years ago)
- Last Synced: 2025-02-14T20:38:19.069Z (4 months ago)
- Language: JavaScript
- Size: 297 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hangman Game
## Overview
**Hangman Game** is a simple hangman game made with JavaScript and React. This project is built based on [This Is A Great Beginner React/TypeScript Project](https://www.youtube.com/watch?v=-ONUyenGnWw&t=1s&ab_channel=WebDevSimplified) YouTube video. The code is modified from its original version by using JavaScript instead of TypeScript.The goal of the project is to practice with:
* Managing state in React
* [useCallback](https://reactjs.org/docs/hooks-reference.html#usecallback) and [useEffect](https://reactjs.org/docs/hooks-reference.html#useeffect) hooks
## Features
**Hangman Game** has the following features.
* The letters could be read either from PC keyboard or screen keyboard.
* While guessing a word, player can do 5 mistakes.
* If a player was not able to guess the correct word, it is shown.

* A player has to refresh a page to play again.
## Getting Started
To run **Hangman Game** locally,
1. Clone this repo.
2. ```cd``` into project directory.
3. Start the server by running the following command:
```
npm start
```
The ```http:localhost:3000``` page will be automatically opened in your browser.