An open API service indexing awesome lists of open source software.

https://github.com/alexandrabaturina/react-hangman-game


https://github.com/alexandrabaturina/react-hangman-game

Last synced: 2 months ago
JSON representation

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.
![image](https://user-images.githubusercontent.com/53233637/204709700-a3adb890-24ba-467e-a253-e1dfe03b5fdd.png)
* 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.