Provides some cool games to play in console:
- Brain-even. A game, where player needs to define if the given number is even.
- Brain-calc. A game, where player needs to solve arithmetic problems.
- Brain-gcd. A game, where player needs to find greatest common devisor of two numbers.
- Brain-prime. A game, where player needs to define if the given number is prime.
- Brain-progression. A game, where player needs to find missing number in progression.
Python >=3.8.1 poetry >= 1.2.0
- Clone GitHub repo:
git clone https://github.com/Pythonusus/python-project-49
- Create virual environment and install dependencies.This comman should be executed in the root directory of the project:
make install
- Build project:
make build
- Install project on user level (
home/<user-name>/.local/bin
for Linux users):make package-install
- Check
PATH
environmental variable. Path to the installation folder should be added toPATH
. - Brain-games are ready to play!
After installing the project, following commands will be available in the command line:
brain-games
- shows welcome messagebrain-even
- starts brain-even gamebrain-calc
- starts brain-calc gamebrain-gcd
- starts brain-gcd gamebrain-progression
- starts brain-progression gamebrain-prime
- starts brain-prime game
This project was built using these tools:
Tool | Description |
---|---|
uv | "An extremely fast Python package and project manager, written in Rust" |
Ruff | "An extremely fast Python linter and code formatter, written in Rust" |
prompt | "The prompt library provides functions that prompt for strings, numbers, and passwords." |