UNPKG

marazmatique

Version:

this is packadge for install and run Brain Games on your $shel

37 lines (29 loc) 1.74 kB
# project-lvl1-s486 [![Maintainability](https://api.codeclimate.com/v1/badges/90a359c7ecb6c2bde7ef/maintainability)](https://codeclimate.com/github/marazmatique/project-lvl1-s486/maintainability) [![Build Status](https://travis-ci.com/marazmatique/project-lvl1-s486.svg?branch=master)](https://travis-ci.com/marazmatique/project-lvl1-s486) # The Brain Games "Brain games" is a collection of games for CLI, based on simple logical and mathematical rules. ___ ### **Install The BrainGames from npm** ``` npm install marazmatique ``` [![asciicast](https://asciinema.org/a/MPt0QWzQyEhxfOuB63nA9U0Bl.svg)](https://asciinema.org/a/MPt0QWzQyEhxfOuB63nA9U0Bl) ___ ### **Game Options:** #### To start the selected game, type the appropriate command in the CLI and complete the task: 1.``` brain-even ``` Answer "yes" if number even otherwise answer "no" [![asciicast](https://asciinema.org/a/fEvhA0BzvW1Sfk9Ln2JjCDj5O.svg)](https://asciinema.org/a/fEvhA0BzvW1Sfk9Ln2JjCDj5O) 2.```brain-calc``` What is the result of the expression? [![asciicast](https://asciinema.org/a/cx19lPfxPUeF7fVdiAhRoaEvS.svg)](https://asciinema.org/a/cx19lPfxPUeF7fVdiAhRoaEvS) 3.```brain-gcd``` Find the greatest common divisor of given numbers. [![asciicast](https://asciinema.org/a/hE37HNWUbtKGyyEoCAT1XuKH2.svg)](https://asciinema.org/a/hE37HNWUbtKGyyEoCAT1XuKH2) 4.```brain-prog``` What number is missing in the progression? [![asciicast](https://asciinema.org/a/3W3az7CmIkzm392KpVb6GV86U.svg)](https://asciinema.org/a/3W3az7CmIkzm392KpVb6GV86U) 5.```brain-prime``` Answer "yes" if given number is prime. Otherwise answer "no". [![asciicast](https://asciinema.org/a/kQgb1KSyqbs0WUPXvmZGbHUHI.svg)](https://asciinema.org/a/kQgb1KSyqbs0WUPXvmZGbHUHI)