js-console-tetris

Tetris game written in JS that runs in JS console in your browser.

How to start the game

  1. Open JS console in your browser.
  2. Enter Tetris.start() to start the game.
  3. Click on the page to make sure that mouse focus is here.

How to play the game

  • Use left and right arrow keys to move tetrinos.
  • Use up arrow key to rotate tetrino.
  • Use down arrow key to drop tetrino.
  • Press space bar to pause.
  • Enter Tetris.stop() to stop the game.
  • Enter Tetris.restart() to restart the game.