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

HasmikSarg/javascript-tetris

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tetris Game - Pure JavaScript

A classic Tetris game built with vanilla HTML5, CSS3, and JavaScript. No frameworks, no libraries - just good old JavaScript. Perfect if you're learning game development or want to see how classic games work under the hood.

How to Play

Play Online

Want to jump right in? Just click the link below and start playing:

๐ŸŽฎ Play Tetris Online

Run it Locally

If you prefer to run it on your machine:

  1. Clone the repo or grab the ZIP file
  2. Extract it if you downloaded the ZIP
  3. Find the project folder
  4. Open index.html in your browser
  5. That's it! No npm install, no build steps, nothing.

Controls

  • Enter: Start a new game or restart when it's game over
  • Space: Pause/unpause
  • Arrow Left (โ†): Move left
  • Arrow Right (โ†’): Move right
  • Arrow Up (โ†‘): Rotate the piece
  • Arrow Down (โ†“): Drop faster

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%