Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 2.57 KB

File metadata and controls

67 lines (57 loc) · 2.57 KB

brain-games.js

Actions Status Codeclimate | Maintainability

Description

Here are introduced the following simple console math games:

  1. brain-games - be welcomed
  2. brain-calc - calculate arithmetic expressions
  3. brain-progression - find a missing number in a sequence
  4. brain-even - figure out whether a number is even
  5. brain-gcd - find the greatest common divisor
  6. brain-prime - figure out whether a number is prime

Rules

to pass

Answer correctly on 3 questions in a row.

to fail

Answer wrongly on at least 1 question.

How to play

Prerequisites

  • Node 21 is installed.

Install

npm ci

npm link

Run

Start a game by name. For example:

brain-calc

Demo

brain-games

asciicast

brain-calc

passed

asciicast

failed

asciicast

brain-even

passed

asciicast

failed

asciicast

brain-gcd

passed

asciicast

failed

asciicast

brain-prime

passed

asciicast

failed

asciicast

brain-progression

passed

asciicast

failed

asciicast