Coder Social home page Coder Social logo

tetris's Introduction

Tetris ➡️

This is a Tetris game developed using Python's Pygame library. The objective of the game is to clear as many lines as possible by arranging tetrominoes (shapes made of four blocks) in horizontal lines without gaps.

An animation of flying blocks will be played when lines are cleared!

Installation

To play the game, make sure you have Python 3 installed on your computer. You can download Python from the official website: https://www.python.org/downloads

You will also need to install Pygame, which can be done by running the following command in your terminal:

"pip install pygame"

How to Play

Use the left and right arrow keys to move the tetromino sideways.

Use the up arrow key to rotate the tetromino.

Use the down arrow key to make the tetromino fall faster.

Plan your next move with the "next" tetronimo on the right.

The game will restart when the tetromino stack reaches the top of the screen.

Tetris Project

Flying Tetrominoes

tetris's People

Contributors

shirleyfyx avatar

Watchers

Kostas Georgiou avatar  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.