Coder Social home page Coder Social logo

tetris's Introduction

Tetris

A classic Tetris game built with React's CRA

Live app: https://tetris.mjagminas.com

How to play

The game starts automatically. The highest score will be saved in the browser's local storage. User can use a keyboard, or use the interactive buttons on Tetris to control the game.

Game controls

  • To move the figure to the left press the left arrow key, or press the left arrow on the screen.
  • To move the figure to the right press the right arrow key, or press the right arrow.
  • To rotate the figure press up arrow key, or press the up arrow.
  • To drop the figure down use arrow down key, or press the down arrow.
  • To pause or resume the game press p key, or use pause/resume button on the screen.
  • To start a new game press s key, or press start button.

Local development

Clone the project on the local machine:

git clone https://github.com/mariusjagminas/tetris.git

Install all dependencies:

npm install

Start a development server:

npm start

Open http://localhost:3000 to view game in the browser.

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.