From e4742d8a144003ef962b486b1346c42ce85df197 Mon Sep 17 00:00:00 2001 From: Lukian LEIZOUR Date: Sun, 3 Mar 2024 17:25:36 +0100 Subject: [PATCH] solved a bug --- AppLaser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppLaser.java b/AppLaser.java index 4e0e775..f2b4e16 100644 --- a/AppLaser.java +++ b/AppLaser.java @@ -80,9 +80,9 @@ public class AppLaser { case 2: System.out.print("Enter the position of the start point in the first axis : "); - start_i = scanner.nextInt() + 1; + start_i = scanner.nextInt(); System.out.print("Enter the position of the start point in the seccond axis : "); - start_j = scanner.nextInt() + 1; + start_j = scanner.nextInt(); System.out.print("Enter the direction of the start point : "); start_dir = scanner.nextInt(); @@ -96,7 +96,7 @@ public class AppLaser { currentState = new Situation(firstState_i + 1, firstState_j + 1, start_dir, 0); - universe.changeUniverseStart(start_i, start_j, start_dir); + universe.changeUniverseStart(start_i + 1, start_j + 1, start_dir); break;