From 809701c5f6054b009ebe811f1c05374fcc18fce9 Mon Sep 17 00:00:00 2001 From: Immanuel Alvaro Bhirawa Date: Sat, 8 Apr 2023 00:25:37 +1000 Subject: [PATCH] Task 5 [Fixed slight string error in player statement] and the bug is fixed (Just need some comments later lol) Signed-off-by: Immanuel Alvaro Bhirawa --- src/comp1110/ass2/gui/Viewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp1110/ass2/gui/Viewer.java b/src/comp1110/ass2/gui/Viewer.java index 54bb5e9..b9b5e01 100644 --- a/src/comp1110/ass2/gui/Viewer.java +++ b/src/comp1110/ass2/gui/Viewer.java @@ -331,7 +331,7 @@ public class Viewer extends Application { container += ", placed villages at "; int counterT = 0; while(i < parseSplit.length){ - counter++; + counterT++; String[] coords = parseSplit[i].split(","); Rectangle village = new Rectangle(boardHeightPx/boardHeight - 15, boardHeightPx/boardHeight - 15, Color.LIGHTGOLDENRODYELLOW);