From aa716e442adec09dcc7f8020a4babd4a29cb2ead Mon Sep 17 00:00:00 2001 From: JimmyTheCat <154287729+JimmyTheCatOwO@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:13:06 +0100 Subject: [PATCH] turnEnd java doc adjusted and Tile constructor call in Board adjusted --- Board.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Board.java b/Board.java index 6c5c616..3f805c9 100644 --- a/Board.java +++ b/Board.java @@ -59,14 +59,17 @@ public class Board extends Thread { * Creats the tiles and assigns the first turn. */ private void initBoard() { - for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(0,0,0); + for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(); currentPlayer = firstPlayer; marks = 0; } + /** * Ends the turn by increasing the mark counter and changing the player. * Additionally it ends the game when certain conditions are met. + * + * @return current player won */ public boolean turnEnd() { marks++; -- GitLab