Skip to content

drgoodness/fullstack-javascript-project-44

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors