Read this in English | Spanish
Brain Games is a package of five CLI-based games whose gameplay is similar to some popular 'brain teaser' mobile apps. Each game generates a set of problems. Solve three problems to complete a game. A wrong answer means a game over and restart. The following games are featured:
- Even-Odd Game. Tell whether a number is even.
- Calculator Game. Solve arithmetic problems.
- GCD Game. Find the greatest common divisor of a pair of numbers.
- Progression Game. Find the number missing from a sequence.
- Prime Game. Tell whether a number is prime.
npm install -g backend-project-lvl1
Run the games in the console:
- Even-Odd Game:
brain-even
- Calculator Game:
brain-calc
- GCD Game:
brain-gcd
- Progression Game:
brain-progression
- Prime Game:
brain-prime