@lordkriegan/game_of_nodes

4.0.1 • Public • Published

When you get bored you may want to smash up some White Walkers. Just do a global install:

npm install --global @lordkriegan/game_of_nodes

Then run it with the following command:

gameofnodes

Good luck!

To add a new game:

Create your game in the games folder, and export your main function.

In your end game function, require and execute cli.js to get back to the start menu.

Ex: require('../cli.js')();

Include the following line at the top of all .js files: 

#!/usr/bin/env node

You can use the clog function in helpers/helpers.js to display info to user. It takes in a single argument of an array of strings.

Changelog: 4.0.1 Fixed hangman glitch where it would not recognize a fully guessed word immediately. 4.0.0 Seperated cli.js in order to add expandability for more games. Added hangman game

Package Sidebar

Install

npm i @lordkriegan/game_of_nodes

Weekly Downloads

0

Version

4.0.1

License

ISC

Unpacked Size

11.8 kB

Total Files

10

Last publish

Collaborators

  • lordkriegan