Skip to content

AnyaMankova/python-project-lvl1

Repository files navigation

Hexlet tests and linter status:

Actions Status

Maintainability

Test Coverage

Description:

Brain-games contains five different games: Even number, The biggest common divisor, Calculator, Progression, Prime number. Every game starts with greeting and asks user's name. Than game asks questions. If there are thre correct answers, the game congratulate user. If there is a mistake, the game offers to play again.

Dependencies:

  • Python = "^3.8"
  • prompt = "^0.4.1"

    Installation:

  • make install
  • make build
  • make package-install

    To initiate game use commands as following:

  • brain-even
  • brain-gcd
  • brain-prime
  • brain-progression
  • brain-calc

    Description.

    Brain-even: The game offers to user a random number. User should answer 'yes' if the number is even and 'no' otherwise.

    Brain-gcd: The game offers to user two random numbers. User should calculate the greatest common divisor .

    Brain-prime: The game offers to user a random number. User should answer 'yes' if the number is prime and 'no' otherwise.

    Brain-progression: The game offers to user row of numbers which is arithmetic progression, one of numbers replaced by '..'. The user should enter replaced number.

    Brain-calc: The game offers to calculate some mathematics question. The user should enter the answer.

  • About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Packages

    No packages published