Best Scores

      Key controls

      [W] Rotate current block

      [S] Accelerate current block

      [A] Move left

      [D] Move right

      [Q] Hold block

      [ESC] Pause, Continue

      [SPACE] Place block instantaneously

      Tetris


      Tetris tetris = new Tetris();

      int[][]grid = new int[][]{

      };

      Pause

      Press ESC to continue

      Game Over

      Press ESC to restart


      Wanna safe your
      personal highscore?



      while(!gameOver) {

        tetris.runGame(grid);

      }


      Button

      = new Button(() -> tetris.start());

      Button

      = new Button(() -> tetris.runLoop = false);


      Score:

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      Highscore:

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9

      Level:

      0 1 2 3 4 5 6 7 8 9

      0 1 2 3 4 5 6 7 8 9


      Next:

      null


      null


      Hold: