Skip to content
This repository was archived by the owner on Aug 11, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

A React-based minimalist implementation of the classic Tetris game.


Gameplay

Key Bindings

Action Keys
Move Left a / ArrowLeft
Move Right d / ArrowRight
Rotate Clockwise w / ArrowUp
Rotate Counter z
Soft Drop s / ArrowDown
Hard Drop Space
Hold Piece c
Pause Game Escape

Features

  • Game Grid: A 10x20 grid with an invisible top row.
  • Super Rotation System: Fully implemented.
  • Game Over: When new tetrominoes cannot spawn.
  • Score Tracking: Simple scoring system based on rows cleared.
Rows Cleared Points
1 100
2 300
3 500
4 800

Future Improvements

  • Better randomization: Could use a 7-bag system for regular frequency of tetrominoes.
  • Scoring system: Could be more rewarding.
    • T-spin detections.
    • Back-to-back bonuses.
    • Combos.
    • Full clear bonuses.
  • Speed system: Could introduce dynamic speed increases.
  • Visuals: Could use more effects.
    • Line clears and T-spins are not animated.
    • Game overs are abrupt.

How to Run the Game

  1. Clone the repository:

    git clone https://github.com/crescmoon/app1
  2. Navigate to the project directory:

    cd app1
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm start
  5. Open the game in a browser at http://localhost:3000.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages