Skip to content

newvertex/TetrisJs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

TetrisJs

Tetris game in JavaScript

You can play game on web page with just simple HTML or play it on terminal with Node.Js

To run on terminal just pass the file to Node.js:
node Tetris.js

To run on web browser in this version I just use the simple HTML to show the board no third party just JS & HTML then just open the index.html file

If you want add it to other place don't forget to add a <pre id="view"></pre> on the place that you want to display the game and just add a script tag to Tetris.js file

TetrisJs on webpage with html TetrisJs on terminal with Node.js

If you want you can use the Tetris class, in the class just draw and play method working with dom and console with some control on it the main goal dosn't depend on html or Node.js

About

Tetris game in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published