feat: fusion Circuit et CircuitCell

This commit is contained in:
2025-11-05 22:26:20 +01:00
parent d2847745ba
commit 8d280b1024
5 changed files with 74 additions and 71 deletions

View File

@@ -6,6 +6,8 @@ public class Game
private Car[] cars;
private Map map;
private ArrayList<GObserver> obs;
public static class Builder
{
private int pnumber = 3;
@@ -57,8 +59,6 @@ public class Game
}
}
private ArrayList<GObserver> obs;
public Game(int pnumber, Map map, State state)
{
int loop = map.getPathSize();
@@ -71,6 +71,7 @@ public class Game
{
Car car = new Car(loop, state);
cars[i] = car;
// Observer pour avancer
obs.add(car);
}