added the ability to cross laser

This commit is contained in:
Lukian LEIZOUR 2024-03-02 18:53:07 +01:00
parent 7b8b996a98
commit 8f4421bc12
2 changed files with 84 additions and 55 deletions

View file

@ -8,8 +8,8 @@ public class AppLaser {
int start_i = 3;
int start_j = 1;
int start_dir = 11;
int universe_width = 30;
int universe_height = 12;
int universe_width = 6;
int universe_height = 6;
int firstState_i = start_i;
int firstState_j = start_j;
@ -26,11 +26,10 @@ public class AppLaser {
// obstacles creation
//universe.addObstacle(3, 3);
//universe.addObstacle(4, 3);
//universe.addObstacle(3, 4);
//universe.addObstacle(4, 4);
//universe.addObstacle(12, 5);
universe.addObstacle(2, 3);
universe.addObstacle(3, 3);
universe.addObstacle(2, 4);
universe.addObstacle(3, 4);
universe.print();
@ -51,6 +50,7 @@ public class AppLaser {
} else {
break;
}
universe.print();
}
System.out.println("\n\n");