@anastassin/brain-games

This is package of brain mini console games.

Usage no npm install needed!

<script type="module">
  import anastassinBrainGames from 'https://cdn.skypack.dev/@anastassin/brain-games';
</script>

README

project-lvl1-s474

Maintainability"> Test Coverage Build Status

This is the set of mini-games, launched at console. These games look like "Brain Games" and include:

  • Brain even - answer "yes" if number even otherwise answer "no".
  • Brain calc - find result of the expression.
  • Brain gcd - find the greatest common divisor of given numbers.
  • Brain progression - find number is missing in the progression.
  • Brain prime - answer "yes" if given number is prime. Otherwise answer "no".

Setup


$ sudo npm install -g @anastassin/brain-games

Run


  • Brain even asciicast
  • Brain calc asciicast
  • Brain-gcd asciicast
  • Brain-progression asciicast
  • Brain-prime asciicast