Skip to content

morpybot/hangman-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This Node.js module is used to store a list of french words that can be used to pick a word for hangman game, or for any other use case.

Installation

To install @morpy/hangmanwords in your Node.js application, run this command in a terminal :

npm install @morpy/hangmanwords

Usage

const hangmanWords = require("@morpy/hangmanwords");

// The property 'WORDS' contains the list of all referenced words
const words = hangmanWords.WORDS;

// The function 'randomWord' picks randomly a word in the word list
const someWord = hangmanWords.randomWord();

You can also import it using ES6 desctructuration :

const { WORDS, randomWord } = require("@morpy/hangmanwords");

Sources

Base word list comes from this thread, but new words will come with updates.

About

Words used by the minigame "Hangman"

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •