Coder Social home page Coder Social logo

tetris's Introduction

TETRIS

A Tetris clone written in C++ and Qt.

MotivationInstallationHow to PlayContributeCreditsLicense

Motivation

Tetris is a video, computer, and even board game, which Alexey Pajitnov invented, designed and programmed. It was created on June 6, 1984. He has mentioned that the classic Roman pentomino puzzle has helped inspired the game. The original Tetris game was published in 1985 for various systems.

Tetrominoes fall from above one at a time. In Tetris, a player positions falling Tetrominoes so that they fill up an entire Line. The player must sort them such that he or she forms continuous horizontal line clears, which will then clear, and the above tetrominoes will fall. Frequently, clearing multiple lines simultaneously will benefit the player. For example, clearing four such lines yield a tetris. As the game progresses, the tetrominoes fall faster, making things more difficult.

The goal is to get a very high Score. The player add to their score by positioning blocks faster with Hard Drops and Soft Drops, clearing lines, especially many lines at once, clearing the entire screen, and doing maneuvers requiring great timing. He can rotate and move tetrominoes, but he cannot convert one tetromino to another. The game ends when the tetrominoes reach the top of the screen

Installation

Prerequisites: You must have Git installed on your console and also QtCreator

  1. On GitHub, go to the main page of the repository.

  2. Under the name of the repository, click Clone or download.

  3. In the Clone with HTTPs section, click to copy the repository cloning URL.

  4. Open Git Bash.

  5. Change the current working directory to the location where you want the cloned directory to be made.

  6. Type 'git clone', and then paste the URL that you copied in Step 2.

    $ git clone https://github.com/angelortizv/Tetris.git

  7. Press Enter. Your local clone will be created for Tetris.

  8. Open QtCreator, select: File -> Open File or Project and go to the location where you cloned the project.

  9. Click on Tetris.pro to open the project.

How to Play?

This Tetris clone can be control using:

  1. The arrows / to move the tetrominoes across the window.
  2. The arrow to change the tetrominoes direction.
  3. The arrow to put down the tetrominoes.
  4. Use SPACE to rotate the tetrominoes to fit holes.

Contribute

Credits

Authors

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details


tetris's People

Contributors

angelortizv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rtufino

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.