Skip to content

warpedrhubarb/brain-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brain Games

example workflow

Description

Brain Games is a mathematical quiz built for command line.

It consists of five games:

Find even number: Answer Yes if the number is even, otherwise answer No.

Calculator: What is the result of the expression?

Greatest Common Divisor Calculator: Find the greatest common divisor of given numbers.

Arithmetic progression: Answer Yes if given number is prime. Otherwise answer No.

Find prime number: What number is missing in the progression?

Installation

Clone the project to your local directory and run

npm install

Usage

Run the following commands to play corresponding games:

make brain-even

make brain-calc

make brain-gcd

make brain-progression

make brain-prime

Examples

Name initialization & find even number:

asciicast

Calculator (+, -, * operators):

asciicast

Greatest Common Divisor Calculator:

asciicast

Arithmetic progression:

asciicast

Find prime number:

asciicast