lion0k/project-lvl1-s384

View on GitHub
README.md

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html lang="en">
  <head>
  </head>
  
  <body>
  
<h3>
Project Brain games on Hexlet 
</h3>
<hr>
<a href="https://codeclimate.com/github/lion0k/project-lvl1-s384/maintainability"><img src="https://api.codeclimate.com/v1/badges/14886bac8794dd18a46d/maintainability" /></a>
<a href="https://codeclimate.com/github/lion0k/project-lvl1-s384/test_coverage"><img src="https://api.codeclimate.com/v1/badges/14886bac8794dd18a46d/test_coverage" /></a>

<a href="https://travis-ci.org/lion0k/project-lvl1-s384">
<img src="https://travis-ci.org/lion0k/project-lvl1-s384.svg?branch=master"></a>

<!--<a href="https://coveralls.io/github/lion0k/project-lvl1-s384?branch=master">
<img src="https://coveralls.io/repos/github/lion0k/project-lvl1-s384/badge.svg?branch=master"></a>

<a href="https://codeclimate.com/github/lion0k/project-lvl1-s384">
<img src="https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg"></a>-->
<hr>
<h4>
Descriptions games
</h4>
<p>
All mini-games ask you 3 questions. Your challenge is to answer all questions correctly.
</p>
<ul>
    <li><b>brain-even</b> - specify if the number is even or not, using only yes or no.</li>
    <li><b>brain-calc</b> - find a solution to a mathematical expression, like 2 * 9</li>
    <li><b>brain-gcd</b> - find the greatest common divisor of two numbers, like (55, 40) = 5</li>
    <li><b>brain-progression</b> - You are given an arithmetic progression, for example, 8 12 16 20 .. 28 32 36 40 44. You must find the missing number of the sequence.</li>
    <li><b>brain-prime</b> - specify if the number is prime or not, using only yes or no.</li>
</ul>     
<hr>
<h4>
Installation and usage
</h4>
<p>
1) <code>composer global require li0n0k/brain-games</code><br>
2) Add in your PATH - <code>$HOME/.composer/vendor/bin</code><br>
3) Run for example <code>brain-even</code><br>
4) Enjoy! 
</p>
<hr>
<h4>
Example installation and play
</h4>
<a href="https://asciinema.org/a/wEXNeHhKsrn3QiZUQmqMditl0" target="_blank">
<img src="https://asciinema.org/a/wEXNeHhKsrn3QiZUQmqMditl0.svg" /></a>

  </body>
</html>