Стабилизировать бота уровня 10 при задержках

This commit is contained in:
2026-08-18 03:33:53 +03:00
parent 6790a84d86
commit 9e418df184
4 changed files with 118 additions and 16 deletions
@@ -80,6 +80,16 @@ public final class LevelPlaytestBotTest {
assertTrue(result.doorOpened());
}
@Test
public void automationSnapshotDefaultsToNoMovingPlatform() {
GameView.AutomationSnapshot snapshot = new GameView.AutomationSnapshot(
false, true, false, false, false,
1, 0L, 130f, 760f, 0, 0);
assertTrue(Float.isNaN(snapshot.firstMovingPlatformY()));
assertFalse(snapshot.playerOnMovingPlatform());
}
private static final class ScriptedDriver implements LevelPlaytestBot.Driver {
private int startedLevel;
private long nowMillis;