diff --git a/src/Map.java b/src/Map.java
index a407a37..527b2c2 100644
--- a/src/Map.java
+++ b/src/Map.java
@@ -53,9 +53,9 @@ public class Map
* Crée une map à partir d'un tableau d'entiers.
*
* - 0 -> EMPTY
- * - 1 -> ROAD
- * - 2 -> START
- * - 3 -> FINISH
+ * - -1 -> ROAD
+ * - -2 -> START
+ * - -3 -> FINISH
* - autres -> YROAD avec la valeur associée
*
*
@@ -66,9 +66,9 @@ public class Map
{
return create((i) -> switch (i) {
case 0 -> new Circuit(CircuitCell.EMPTY);
- case 1 -> new Circuit(CircuitCell.ROAD);
- case 2 -> new Circuit(CircuitCell.START);
- case 3 -> new Circuit(CircuitCell.FINISH);
+ case -1 -> new Circuit(CircuitCell.ROAD);
+ case -2 -> new Circuit(CircuitCell.START);
+ case -3 -> new Circuit(CircuitCell.FINISH);
default -> new Circuit(CircuitCell.YROAD, i);
}, map);
}
@@ -148,7 +148,7 @@ public class Map
for (int i = 0; i < map.length; i++)
{
- for (int j = 0; j < map.length; j++)
+ for (int j = 0; j < map[0].length; j++)
{
switch (map[i][j].getType())
{