feat: ajout impl Car et rework State et Game

This commit is contained in:
2025-11-05 20:23:57 +01:00
parent 5121e25e46
commit d2847745ba
6 changed files with 149 additions and 137 deletions

View File

@@ -6,6 +6,11 @@ public class Main {
{'9', '#', 'F'},
});
Game game = new Game.Builder()
.setMap(m)
.setPlayers(3)
.build();
Thread t = new Thread(() -> {
int i = 0;
while (i++ < 10)
@@ -18,12 +23,11 @@ public class Main {
{
e.printStackTrace();
}
System.out.println(Game.getInstance().togglePause() ? "stop" : "fini" );
System.out.println(game.togglePause() ? "stop" : "fini" );
}
});
t.start();
Game.getInstance()
.run();
game.run();
}
}