1.1.1 • Published 4 years ago
@nicolas-nicotine/hangman.js v1.1.1
hangman.js
hangman.js is a package that allows you to create hangman games easily!
Installation
npm install @nicolas-nicotine/hangman.js
Usage
const hg = require('@nicolas-nicotine/hangman.js');
const hangman = new hg.Game('<word>', '<conceal character>', maxAttempt);
hangman.guess('<character>');
Replace
<word>
by any word you want.<conceal character>
is the character used to hidde the word. By default_
.maxAttempt
is the maximum number of tries players have. By default10
. Replace<character>
by a letter or a word.
Contribute
If you want to contribute, you can fork this repo then create a pull request.