Skip to content

A set of mini games you can play in your Terminal

Notifications You must be signed in to change notification settings

siniiitsa/brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain-games

A set of cli mini games in a form of an npm module.

Node CI Maintainability

Description and demos

Every game is a simple 3-round process, giving questions and accepting user answers

  • Brain-even - guess if the number is even or not
  • Brain-gcd - find the greatest common divisor of 2 given numbers
  • Brain-progression - find the missing element of a random arithmetic progression
  • Brain-prime - guess if the given number is prime or not
  • Brain-calc - find a result of a given random math operation with 2 numbers

How to install and use

  1. Download or clone this repository
  2. Open a terminal window in the project folder and run:
npm link

This will install the game set as a global npm module and you will be able to launch each game from anywhere in the terminal window. To lauch any game, just execute the game name as a command in your terminal. Like this:

brain-even

Happy playing!

About

A set of mini games you can play in your Terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published