From 6ed9390f770db8e98a2575def0e4d903b7427db1 Mon Sep 17 00:00:00 2001 From: Ewen Date: Thu, 11 Nov 2021 14:25:07 +0100 Subject: [PATCH] Board erstellt --- src/Tetris/Board.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tetris/Board.java b/src/Tetris/Board.java index 81bc437..80c6a12 100644 --- a/src/Tetris/Board.java +++ b/src/Tetris/Board.java @@ -11,7 +11,7 @@ public class Board extends JPanel public static final int BOARD_WIDTH=10; public static final int BOARD_HEIGHT =20; private Timer loop; - private Color[][] board = new = Color[20][20]; + private Color[][] board = new Color[BOARD_HEIGHT][BOARD_HEIGHT]; public Board() { loop = new Timer(500, new ActionListener() { int n = 0;