Coder Social home page Coder Social logo

python-project-49's Introduction

Hexlet tests and linter status:

Actions Status

Maintainability:

Maintainability

Description

"Brain Games" is a set of five console games based on popular mobile brain training apps. Each game asks questions that need to be answered correctly. After three correct answers, the game is considered to be completed. Wrong answers end the game and offer to play it again.

The project consists of the main folder "brain_games" and auxiliary files. "brain_games" itself includes "game_engine.py",which is the engine of all games, "games" subsection with the logic of each game, and "scripts" subsection with scripts that launch games.

To add a new game to the project, you need to create a file with its logic in the "games" folder and a file in the "scripts" folder that launches the game. Also in the pyproject.toml in the "tool.poetry.scripts" section, you need to make an appropriate entry about the new game.

Installation and launch

Get the project

$ git clone https://github.com/anastasiia-nez/python-project-49.git
$ cd ./python-project-49
$ make install

Run games without installation

$ make the_game_name

Install and launch games

$ make build
$ make package-install
$ the_game_name

Games:

* brain-calc              -Calculator. Arithmetic expressions to be evaluated
* brain-progression       -Finding missing numbers in a sequence of numbers
* beain-even              -Definition of an even number
* brain-gcd               -Definition of the Greatest Common Divisor
* brain-prime             -Definition of prime number

Examples:

asciicast

asciicast

asciicast

asciicast

asciicast

python-project-49's People

Contributors

anastasiia-nezgovorova 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.