@vvpeters/brain-games

hexlet frontend first project (brain games)

Usage no npm install needed!

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

README

Brain Games

Actions Status Actions Status Maintainability


Description

A set of mini-games for terminal. All games continue until you give the correct answer 3 times in a row.


Installation

$ npm install brain-games


Usage

$ brain-even  
Answer "yes" if the number is even, otherwise answer "no".

$ brain-calc  
What is the result of the expression?

$ brain-gcd  
Find the greatest common divisor of given numbers.

$ brain-prime  
Answer "yes" if given number is prime. Otherwise answer "no".

$ brain-progression  
What number is missing in the progression?

Examples