Стабилизировать бота уровня 10 при задержках
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user