Skip to content

Vasavi656/tetris_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game

A Tetris-inspired game featuring block movement, rotation, collision detection, and a scoring system. This project demonstrates core DSA concepts, including matrix operations, grid-based state management, and event handling to create an interactive gaming experience.

Features

  • Block Placement & Rotation – Uses matrix manipulation to handle smooth block transitions.
  • Collision Detection – Ensures blocks land correctly and prevents overlaps.
  • Grid-Based State Management – Dynamically updates the game state as blocks move and stack.
  • Scoring System – Awards points when rows are cleared, encouraging competitive gameplay.

Technologies Used

  • JavaScript (Canvas API) – For rendering and managing game elements.
  • DSA Concepts – Matrix operations, collision detection, and game state updates.

How to Play

  1. Arrow Keys – Move and rotate blocks.
  2. Clear Rows – Earn points by completing full rows.
  3. Survive Longer – As the game progresses, blocks fall faster!

About

Implemented core Tetris functionality, including block movement, rotation, and collision detection using matrix manipulation. Integrated a scoring system to reward completed rows and ensured smooth gameplay transitions with efficient rendering techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors