https://github.com/garf/rps-react
"Rock! Paper, scissors" game. Code example on React.JS
https://github.com/garf/rps-react
code-sample
Last synced: 6 months ago
JSON representation
"Rock! Paper, scissors" game. Code example on React.JS
- Host: GitHub
- URL: https://github.com/garf/rps-react
- Owner: garf
- Created: 2019-03-20T00:41:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T18:53:59.000Z (almost 3 years ago)
- Last Synced: 2025-05-14T23:08:02.537Z (8 months ago)
- Topics: code-sample
- Language: JavaScript
- Homepage:
- Size: 2.88 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ROCK! Paper, scissors game
## Installation
`npm ci`
## Running
`npm start`
## Tests
`npm test`
### Known issues
- not saving scores between sessions
- game results flashing on scores reset
- tests are written only for one service
- very basic styling
### What is done
- playing player with computer
- counting scores
- resetting scores
- it made possible to easily extend it to more options (lizard, Spock)
- potentially extensible for more than 2 players