This commit is contained in:
evanpelle
2026-05-01 16:20:34 -06:00
parent a93c466334
commit 33e1ad9897
46 changed files with 230 additions and 238 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ function addPlayer(game: Game, tile: TileRef): Player {
const info = new PlayerInfo("test", PlayerType.Human, null, "test_id");
game.addPlayer(info);
game.addExecution(new SpawnExecution("game_id", info, tile));
while (game.inSpawnPhase()) game.executeNextTick();
game.executeNextTick(); // init SpawnExecution
game.executeNextTick(); // tick SpawnExecution → player gets territory
return game.player(info.id);
}