docs: add javadocs for nearly everything

This commit is contained in:
Martin Prokoph
2025-09-02 23:48:49 +02:00
parent 504018b9f8
commit 67a12899c6
14 changed files with 334 additions and 31 deletions

View File

@@ -5,39 +5,38 @@ import java.awt.Color;
public enum TetrominoShape {
SQUARE(new int[][]{
{1, 1},
{1, 2}
{1, 1}
}, Color.YELLOW),
LINE(new int[][]{
{1},
{2},
{1},
{1},
{1}
}, Color.BLUE),
T(new int[][]{
{0, 1, 0},
{1, 2, 1}
{1, 1, 1}
}, Color.RED),
L_LEFT(new int[][]{
{0, 1},
{0, 2},
{0, 1},
{1, 1}
}, Color.MAGENTA),
L_RIGHT(new int[][]{
{1, 0},
{2, 0},
{1, 0},
{1, 1}
}, Color.GREEN),
ZAP_LEFT(new int[][]{
{0, 1},
{1, 2},
{1, 1},
{1, 0}
}, Color.CYAN),
ZAP_RIGHT(new int[][]{
{1, 0},
{2, 1},
{1, 1},
{0, 1}
}, Color.ORANGE);
;
final int[][] boundary;
final Color color;