Skip to content

Nurzhan2023/python-project-49

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status

Description

This project includes a collection of 5 math-related games designed to challenge and improve your arithmetic and logical thinking skills. The games include:

  • Checking if a number is prime
  • Inserting a number into an arithmetic progression
  • Providing the result of a calculation (multiplication, addition, subtraction)
  • Answering if a number is even
  • Finding the greatest common divisor of two numbers

Installation

To install the games, ensure you have Poetry installed on your machine, then run the following commands:

make install

##Games To start playing, you can run the following commands:

To Check if a number is prime:

make brain-prime

Demonstration asciinema

To answer if a number is even:

make brain-even

Demonstration asciinema

To provide the result of calculation:

make brain-calc

Demonstration asciinema

To find the greatest common divisor of two numbers:

make brain-gcd

Demonstration asciinema

To insert a number into an arithmetic progression:

make brain-progression

Demonstration asciinema

After installing the package using pip install --user, all commands can be executed without poetry run (e.g., brain-calc instead of poetry run brain-calc).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published