diff --git a/out/production/Tetris/Tetris/Board.class b/out/production/Tetris/Tetris/Board.class index 43b8707..9b2be0c 100644 Binary files a/out/production/Tetris/Tetris/Board.class and b/out/production/Tetris/Tetris/Board.class differ diff --git a/src/Tetris/Board.java b/src/Tetris/Board.java index 38d85ed..5495507 100644 --- a/src/Tetris/Board.java +++ b/src/Tetris/Board.java @@ -41,11 +41,12 @@ public class Board extends JPanel g.setColor(Color.DARK_GRAY); //shape mit 2-Forschleife - for(int i=0;i< shape.length;i++){ - for(int j = 0;j< shape[0].length;j++){ - if(shape[i][j] !=null){ - g.setColor(shape[i][j]); - g.fillRect(i*BLOCK_SIZE,j*BLOCK_SIZE,BLOCK_SIZE,BLOCK_SIZE); + for(int row=0;row< shape.length;row++){ + for(int col = 0;col< shape[0].length;col++){ + if(shape[row][col] !=null){ + g.setColor(shape[row][col]); + // + g.fillRect(col*BLOCK_SIZE,row*BLOCK_SIZE,BLOCK_SIZE,BLOCK_SIZE); } }