1.1.1 • Published 4 years ago

@nicolas-nicotine/hangman.js v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 default 10. Replace <character> by a letter or a word.

Contribute

If you want to contribute, you can fork this repo then create a pull request.

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago