dinarname/project-lvl1-s466

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# project-lvl1-s466

[![Maintainability](https://api.codeclimate.com/v1/badges/453f936e6d02a97875ef/maintainability)](https://codeclimate.com/github/dinarname/project-lvl1-s466/maintainability) [![Build Status](https://travis-ci.org/dinarname/project-lvl1-s466.svg?branch=master)](https://travis-ci.org/dinarname/project-lvl1-s466)


Here is my study project «Brain Games». In this project I practiced:
1. Setting up the dev environment: node.js, babel, npm, eslint.
2. Making readable js code: naming, project structure and levels of abstraction, immutable data.

```
/src
  /bin     – bin files, shebang
  /games   – make game data
  index.js – game engine
  utils.js – reusable component
```

## Setup
```npm install -g braingames-dinar```

[![asciicast](https://asciinema.org/a/d5meWsENpVckuQKXnmkD2PmEe.svg)](https://asciinema.org/a/d5meWsENpVckuQKXnmkD2PmEe)

## Using
```brain-games```

## Game «Even number»
```brain-even```

[![asciicast](https://asciinema.org/a/vz3Hvm63QR5dKbQEJfjKQjdcq.svg)](https://asciinema.org/a/vz3Hvm63QR5dKbQEJfjKQjdcq)

## Game «Calculation»
```brain-calc```

[![asciicast](https://asciinema.org/a/EkQz5y5wHMHzBtWQWq5DZfvoi.svg)](https://asciinema.org/a/EkQz5y5wHMHzBtWQWq5DZfvoi)

## Game «Greatest common divisor»
```brain-gcd```

[![asciicast](https://asciinema.org/a/wPekjXyKIrW3V7mJlTsu7WK5s.svg)](https://asciinema.org/a/wPekjXyKIrW3V7mJlTsu7WK5s)

## Game «Arithmetic progression»
```brain-progression```

[![asciicast](https://asciinema.org/a/plCHNnu3mCo3VjIU5w4cEUa7g.svg)](https://asciinema.org/a/plCHNnu3mCo3VjIU5w4cEUa7g)

## Game «Prime number»
```brain-prime```

[![asciicast](https://asciinema.org/a/696rtEU2Q6hoodtFpk2wV5uV6.svg)](https://asciinema.org/a/696rtEU2Q6hoodtFpk2wV5uV6)