Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alextes/hangman
https://github.com/alextes/hangman
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alextes/hangman
- Owner: alextes
- Created: 2017-01-22T23:00:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T15:34:35.000Z (over 6 years ago)
- Last Synced: 2025-01-01T10:17:51.955Z (6 days ago)
- Language: JavaScript
- Size: 198 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hangman
3dhubs technical challenge### use
* `npm run start` to start the server. default address is `http://localhost:8888`
* `GET /newGame` to start a game
* `POST /makeGuess` to make a guess
* a guess request should include a json body like:
```json
{
"id": 123,
"character": "a"
}
```
* `npm run lint` to check for linting errors### requirements
* chooses a random word out of 6 words: (3dhubs, marvin, print, filament, order, layer)
* prints the spaces for the letters of the word (eg: _ _ _ _ _ for order)
* the user can try to ask for a letter and that should be shown on the puzzle (eg: asks for "r" and now it shows _ r _ _ r for order)
* the user can only ask 5 letters that don't exist in the word and then it's game over
* if the user wins, congratulate him!