Skip to content

๐ŸŽฎ Classic Tetris game built with pure HTML5, CSS3, and JavaScript. ๐Ÿ“š Educational project demonstrating MVC architecture, Canvas API, and modern ES6+ features. ๐Ÿšซ๐Ÿ“ฆ No external dependencies

License

Notifications You must be signed in to change notification settings

ellen-simonyan/javascript-tetris

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tetris Game - Pure JavaScript Implementation

A complete implementation of the classic Tetris game built entirely with vanilla HTML5, CSS3, and JavaScript - no external libraries or frameworks required. This project serves as an excellent educational resource for students learning game development, object-oriented programming, and modern JavaScript concepts.

How to Play

Play Online

You can play the game directly in your browser without downloading anything:

๐ŸŽฎ Play Tetris Online

Play Locally

To play the game locally, follow these steps:

  1. Clone the repository or download the ZIP file
  2. If downloaded as ZIP, extract the files
  3. Navigate to the project directory
  4. Open index.html in any modern web browser
  5. No additional installation or build process required!

Game Controls

  • Enter: Start the game or restart after game over
  • Space: Pause/Resume the game
  • Arrow Left (โ†): Move tetromino left
  • Arrow Right (โ†’): Move tetromino right
  • Arrow Up (โ†‘): Rotate the tetromino clockwise
  • Arrow Down (โ†“): Soft drop (faster descent)

About

๐ŸŽฎ Classic Tetris game built with pure HTML5, CSS3, and JavaScript. ๐Ÿ“š Educational project demonstrating MVC architecture, Canvas API, and modern ES6+ features. ๐Ÿšซ๐Ÿ“ฆ No external dependencies

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.0%
  • HTML 29.6%
  • CSS 2.4%