1.0.19 • Published 7 years ago

my-game-ks v1.0.19

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Brain games

About project

Brain games is a pack of console mini-games which were developed while passing hexlet.io project courses. Each game is unique and started via game engine. Mini-games are modular so you can add your own mini-game.

Installation

npm i my-game-ks -g

Usage

To start the game type brain-{gamename} in the terminal.

There are 6 different games in v1.0.16:

  • brain-even
  • brain-calc
  • brain-gcd
  • brain-progression
  • brain-prime

All the games have similar flow: 1. Welcome screen and name prompt 2. Question 3. Your Answer

Game continues up to 3 correct answers. If you give a wrong answer the game is finished.

Example

kirill$ brain-even
Welcome to the Brain Games!
Answer "yes" if number even otherwise answer "no".

May I have your name? Kirill
Hello, Kirill!

Question: 44
Your answer: yes
Correct!
Question: 76
Your answer: yes
Correct!
Question: 42
Your answer: yes
Correct!
Congratulations, Kirill!

Games description

brain-even

Answer 'yes' if number is even otherwise answer 'no'

brain-calc

Find the result of the expression

brain-gcd

Find the greatest common divisor

brain-progression

Find a missing in given progression

brain-prime

Answer 'yes' if number is prime otherwise answer 'no'

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago