This is an extensible set of small command-line puzzle/trivia-like games. The example games are pretty basic, but it's easy to implement and add your own games to the set to be run with existing game engine.
You can install the package from PyPI. Note that the main package is distributed through TestPyPI index, but there is still a dependency (prompt) to be fetched from the regular PyPI, so you need to use --extra-index-url option.
pip3 install --extra-index-url https://test.pypi.org/simple/ ashpb-brain-games
Guess if random number is even:
Calculate the result of random expression:
Calculate the greatest common divisor of two random numbers:
Find the missing element in arithmetic progression:
Guess if the random number is a prime: