The project was created on the company's course Hexlet.
"Brain Games" is a set of five console games based on the principle of popular mobile applications for brain training. Each game asks questions that need to be answered correctly. After three correct answers, it is considered that the game is over. Incorrect answers end the game and offer to go through it again. Games:
The command to start the game | Description |
---|---|
brain-calc | Calculator. Arithmetic expressions that need to be calculated |
brain-progression | Progression. Finding missing numbers in a sequence of numbers |
brain-even | Determining an even number |
brain-gcd | Determining the greatest common divisor (GCD)s |
brain-prime | Determining a prime number |
- Python version 3.11 or higher
- Pip version 24 or higher
- Poetry version 1.8.2 or higher (you can use the make install command to install)
python3 -m pip install --user git+https://github.com/qffo/python-project-49.git
- The games are launched with the command
brain-namegame
. For example,brain-calc
orbrain-progression
. - To exit the game, press Ctrl + Z.
This project was built using these tools:
Tool | Description |
---|---|
poetry | "Python dependency management and packaging made easy" |
prompt | "Library for prompting input on the command line" |
flake8 | "Your tool for style guide enforcement" |
Package install
Brain Even. Run game and game process
Brain Calc. Run game and game process
Brain Gcd. Run game and game process