Skip to content

zemelko/Brain-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status Maintainability example workflow

This is a Hexlet school project

Contains the implementation of 5 simple games, named as "Brain-Games":

  • calc
  • gcd
  • progression
  • prime
  • even

Install

pip install --user git+https://github.com/NikolayZemelko/python-project-lvl1.git

asciicast

Brain-calc game

The user is shown a random mathematical expression, such as 35 + 16, which must be calculated and the correct answer written down.

asciicast

Brain-gcd game

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

asciicast

Brain-progression game

We show the player a series of numbers that form an arithmetic progression, replacing any of the numbers with two dots. The player must determine this number.

asciicast

Brain-prime game

Game "Is it a prime number?".

asciicast

Brain-even game

The user is shown a random number. And he needs to answer “yes” if the number is even, or “no” if it is odd.

asciicast

About

Five short console-games for mental gymnastics

Resources

Stars

Watchers

Forks

Packages

No packages published