项目作者: Snokke

项目描述 :
Brain games. 6 terminal based mini-games
高级语言: JavaScript
项目地址: git://github.com/Snokke/brain-games-hexlet-project1.git
创建时间: 2018-03-05T08:29:34Z
项目社区:https://github.com/Snokke/brain-games-hexlet-project1

开源协议:

下载


Brain games

Maintainability
Build Status

Install

  1. npm install -g project1-snokke

Usage

There are 6 terminal based mini-games: balance, calc, even, gcd, prime, progression.
To run specific game, type:

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

Demo

Game brain-even:

  1. bash-3.2$ brain-even
  2. Welcome to the Brain Games!
  3. Answer "yes" if number even otherwise answer "no".
  4. May I have your name? Andrei
  5. Hello, Andrei!
  6. Question: 84
  7. Your answer: yes
  8. Correct!
  9. Question: 41
  10. Your answer: no
  11. Correct!
  12. Question: 34
  13. Your answer: yes
  14. Correct!
  15. Congratulations, Andrei!

Asciinema`s of all games: