"Brain Games" 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.
The project consists of the main folder "brain_games" and auxiliary files. "brain_games" itself includes "game_engine.py",which is the engine of all games, "games" subsection with the logic of each game, and "scripts" subsection with scripts that launch games.
To add a new game to the project, you need to create a file with its logic in the "games" folder and a file in the "scripts" folder that launches the game. Also in the pyproject.toml in the "tool.poetry.scripts" section, you need to make an appropriate entry about the new game.
$ git clone https://github.com/anastasiia-nez/python-project-49.git
$ cd ./python-project-49
$ make install
$ make the_game_name
$ make build
$ make package-install
$ the_game_name
* brain-calc -Calculator. Arithmetic expressions to be evaluated
* brain-progression -Finding missing numbers in a sequence of numbers
* beain-even -Definition of an even number
* brain-gcd -Definition of the Greatest Common Divisor
* brain-prime -Definition of prime number