This is the 1st training project of "Python Developer" specialization.
- Practiced user input processing
- Practiced reasonable distribution of code between several modules
- Practiced following DRY and clean code principles
App consists of six CLI games:
- Brain-games: user greeting
- Brain-even: try to guess if the number is even or odd
- Brain-calc: try to calculate a simple math expression (a + b = ?)
- Brain-gcd: try to guess the greatest common divisor for a given number
- Brain-progression: try to guess the missing number in progression (7, 9, 11, .., 15)
- Brain-prime: try to guess if the number is prime or not
This project was built using these tools:
Tool | Description |
---|---|
poetry | "Python dependency management and packaging made easy" |
flake8 | "Check the style and quality of python code" |
code climate | "Enforce code quality standards on every commit" |
You can install the application using the following commands:
- make install - to install the required dependencies
- make package-install - to install the application itself
To run the modules use the following commands:
- brain-games
- brain-even
- brain-calc
- brain-gcd
- brain-progression
- brain-prime
They show how the application interacts with the user:
Brain-games: https://asciinema.org/a/TnhlKhY5qJtr9cg1ZXsdiizRf
Brain-even: https://asciinema.org/a/eg5hB6dj2teSW0XjyLky7OgzK
Brain-calc: https://asciinema.org/a/ej5ID0ckY85hqoBmiqDSzf7s9
Brain-gcd: https://asciinema.org/a/FjnAIqnbgzQcgugVcnQnbGn2u
Brain-progression: https://asciinema.org/a/HIZibfktD3I6PTAZgaiMLka3z
Brain-prime: https://asciinema.org/a/FQjTOIJ13QfKICzKcC8Yk3WUL