Description
As part of the project, you need to implement a set of mini-games that run from the console. Let's call them mind Games.
An example of the game:
$ brain-progression
Welcome to the Brain Game!
What number is missing in this progression?
May I have your name? Roman
Hello, Roman!
Question: 14 .. 18 20 22 24 26 28
Your answer: 16
Correct!
Question: 5 6 7 8 9 .. 11 12
Your answer: 10
Correct!
Question: 12 15 18 21 .. 27 30 33
Your answer: 24
Correct!
Congratulations, Roman!
- Brain-calc: What is the result of the expression?
- Brain-even: Answer "yes" if number even otherwise answer "no"
- Brain-gcd: Find the greatest common divisor of given numbers.
- Brain-progression: What number is missing in the progression?
- Brain-prime: Answer "yes" if given number is prime. Otherwise answer "no"
How to start and play the game Brain-calc!
How to start and play the game Brain-even!
How to start and play the game Brain-gcd!