Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.81 KB

File metadata and controls

41 lines (25 loc) · 1.81 KB

Hexlet Python study project 1 (Brain Games)

Maintainability Build Status

About

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.

Installation

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

Game examples

brain-even

Guess if random number is even:

asciicast

brain-calc

Calculate the result of random expression:

asciicast

brain-gcd

Calculate the greatest common divisor of two random numbers:

asciicast

brain-progression

Find the missing element in arithmetic progression:

asciicast

brain-prime

Guess if the random number is a prime:

asciicast