Code Monkey home page Code Monkey logo

brain-games's Introduction

file analyze

Node CI Maintainability

About Brain Games

This is a set of five console games based on popular mobile brain training apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

  • Calculator. Arithmetic expressions to be evaluated.
  • Progression. Finding missing numbers in a sequence of numbers.
  • Definition of an even number.
  • Finding the Greatest Common Divisor.
  • Definition of a prime number.

About project

This pet-project was created as part of the Hexlet curriculum.

Requirements

  • Node (v.13+)

Getting started

git clone https://github.com/dmytro-komlyk/brain-games.git
cd brain-games/
make install
make link

Examples

Workflow

"Even Check"

The user is shown a random number. And he needs to answer yes if the number is even, or no if it is odd.

launch: $ brain-even

asciicast

"Calculator"

The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.

launch: $ brain-calc

asciicast

"NOD"

The user is shown two random numbers, for example 25 50. The user must calculate and enter the greatest common divisor of these numbers.

launch: $ brain-gcd

asciicast

"Arithmetic progression"

Пользователю показывается ряд чисел, образующий арифметическую прогрессию, заменив любое из чисел двумя точками. Игрок должен определить это число.

launch: $ brain-progression

asciicast

"Is it a prime number?"

The user is shown a random number. And he needs to answer yes if the number is prime, or no if not.

launch: $ brain-prime

asciicast

brain-games's People

Contributors

dmytro-komlyk avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.