Skip to content

DashaChizh/python-project-49

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project "Brain-games"

Hexlet tests and linter status:

Actions Status Quality Gate Status Bugs Code Smells Duplicated Lines (%) Lines of Code Reliability Rating Security Rating Technical Debt Maintainability Rating Vulnerabilities

Description:

5 games, 3 questions, 1 rule. Three correct answers in a row, and you win. One mistake, and you start again. Ready to challenge your intellect?

Minimum installation requirements:

  • Python 3.12 or higher
  • uv

Setup:

  1. Clone the repository:
git clone https://github.com/DashaChizh/python-project-49.git
  1. Go to the project directory:
cd ~/python-project-49
  1. Update or install the package with the current version:
uv sync

or

make install

Launch:

♦ game "Brain-even":

Game Description:

The user is shown a random number. The user must answer "yes" if the number is even, or "no" if it is odd.

brain-even

asciicast

♦ game "Brain-calc":

Game Description:

The user is shown a random math expression, such as 35 + 16, and must calculate and enter the correct answer.

brain-calc

asciicast

♦ game "Brain-gcd":

Game Description:

The user is shown two random numbers, for example, 25 and 50. The user must calculate and enter the greatest common divisor of these numbers.

brain-gcd

asciicast

♦ game "Brain-progression":

Game Description:

The user is shown a sequence of numbers forming an arithmetic progression, where one number is replaced by "..". The player must identify the missing number.

brain-progression

asciicast

♦ game "Brain-prime":

Game Description:

The user is shown a random number. They must answer "yes" if the number is prime, or "no" if it is not.

brain-prime

asciicast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published