feat: ajout getters

This commit is contained in:
2025-11-07 18:13:50 +01:00
parent 9c0c57e09a
commit 5bbca6047d
4 changed files with 25 additions and 25 deletions

View File

@@ -1,33 +1,11 @@
public class Main {
public static void main(String[] args) throws InterruptedException {
// Map m = Map.fromChars(new Character[][] {
// {'3', '#', '2'},
// {'#', ' ', 'S'},
// {'9', '#', 'F'},
// });
public static void main(String[] args) throws InterruptedException
{
Game game = new Game.Builder()
.defaultMap()
.setPlayers(3)
.build();
Thread t = new Thread(() -> {
int i = 0;
while (i++ < 10)
{
try
{
Thread.sleep(5000);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
System.out.println(game.togglePause() ? "stop" : "fini" );
}
});
t.start();
game.run();
}
}