Skip to content

Nurlan-Aliev/brain_games

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Welcome to the Brain Games!

Five math console games.

  • brain-even - given a number, your task is to answer whether it is even or not
  • brain-calc - an example is given that needs to be solved
  • brain-gcd - find the common divisor of two numbers
  • brain-prime - given a number, it’s tedious to answer whether the number is prime or not
  • brain-progression - tedious find missing number

To win each game you need to answer 3 questions correctly

Example of starting a game with a player's victory

asciicast

An example of starting a game with a player defeat

asciicast

Instruction

Games Description
1 brain-even Answer "yes" if the number is even, otherwise answer "no".
2 brain-calc What is the result of the expression?
3 brain-gcd Find the greatest common divisor of given numbers.
4 brain-prime Answer "yes" if given number is prime. Otherwise answer "no".
5 brain-progression What number is missing in the progression?

Installation

Clone the repository and install manually.

$ git clone https://github.com/Nurlan-Aliev/python-project-lvl1.git
$ cd python-project-lvl1

Install using poetry

$ poetry build
$ python3 -m pip install --user dist/*.whl

Install using pip

python3 -m build
python3 -m pip install --user dist/*.whl

Docker

This repository contains the Docker image for Brain Games.

Instructions for use

To run a Docker image, follow these steps:

  1. docker push nualiev/brain-games:latest
  2. docker run -it nualiev/brain-games

Start Game

To start, enter the name of the game.

$ brain-even
$ brain-calc
$ brain-gcd
$ brain-prime
$ brain-progression

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published