Giter Site home page Giter Site logo

python-project-49's Introduction

Brain Games: the collection of 5 math mini-games


Hexlet tests and linter status:

Actions Status Maintainability

This is project "Brain Games" on the Python Development course on Hexlet.io

Used technologies:

This project was built using these tools:

Tool Description
poetry "Python dependency management and packaging made easy"
Py.Test "A mature full-featured Python testing tool"
wemake-python-styleguide "the strictest and most opinionated python linter ever"

Install

git clone https://github.com/AndryVanDuk/python-project-49.git
cd python-project-49
make package-install

Description:

"Mind Games" is a set of five console games based on the popular mobile brain-pumping apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered completed. Incorrect answers end the game and prompt you to play it again.

Games:

  • Brain Even (Answer "yes" if the number is even, otherwise answer "no")
  • Brain Calculator (Answer what is the result of the expression?)
  • Brain GCD (Answer what is the greatest common divisor of given numbers)
  • Brain Progression (Answer what number is missing in the progression?)
  • Brain Prime (Answer "yes" if given number is prime, otherwise answer "no")

They are launched with simple commands:*

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

โœ๏ธ*Make sure that you have Python version 3.6 or higher installed.

Game: "Is even?"

The essence of the game is as follows: 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

Game: "Calculator"

The essence of the game is as follows: the user is shown a random mathematical expression that needs to be calculated and written down the correct answer. asciicast

Game: "GCD"

The essence of the game is as follows: the user shows two random numbers, for example, 25 50. The user must calculate and introduce the largest total divider of these numbers. asciicast

Game: "Progression"

The essence of the game is as follows: the user is shown a series of numbers, forming an arithmetic progression, replacing any of the numbers with two dots. The player must determine this number. asciicast

Game: "Is prime?"

The essence of the game is as follows: the user is shown a random number. And he needs to answer "yes" if the number is prime, or "no" if it is composite: asciicast

Good luck and have a fun game! ๐Ÿคš

python-project-49's People

Contributors

andryvanduk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.