Commit 3446b45e authored by Aneta Steimarova's avatar Aneta Steimarova

#944 Remade itest TestGameInTheDarknessBonusScenario to test stairs obstacle

parent eba10b61
TestGameInTheDarknessEasyThreeStars TestGameInTheDarknessBonusScenario
TestGameInTheDarknessMediumThreeStars \ No newline at end of file
TestGameInTheDarknessHardThreeStars
TestGameInTheDarknessBonusThreeStars
\ No newline at end of file
...@@ -30,16 +30,89 @@ public class TestGameInTheDarknessBonusScenario extends TestGameInTheDarkness { ...@@ -30,16 +30,89 @@ public class TestGameInTheDarknessBonusScenario extends TestGameInTheDarkness {
super(tablexia); super(tablexia);
TablexiaSettings.GAMES_RANDOM_SEED = 1537270739566L; TablexiaSettings.GAMES_RANDOM_SEED = 1537270739566L;
difficulty = GameDifficulty.BONUS; difficulty = GameDifficulty.BONUS;
expectedResult = AbstractTablexiaGame.GameResult.THREE_STAR; expectedResult = AbstractTablexiaGame.GameResult.ONE_STAR;
exceptedFail = 0; exceptedFail = 5;
haveScenario = true; haveScenario = true;
initSteps(); initSteps();
} }
private void initSteps(){ private void initSteps(){
scenarioSteps.put(0, Arrays.asList(new InTheDarknessActionType[]{ scenarioSteps.put(0, Arrays.asList(new InTheDarknessActionType[]{
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.STAIRS,
}));
scenarioSteps.put(1, Arrays.asList(new InTheDarknessActionType[]{
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.STAIRS,
}));
scenarioSteps.put(2, Arrays.asList(new InTheDarknessActionType[]{
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.STAIRS,
}));
scenarioSteps.put(3, Arrays.asList(new InTheDarknessActionType[]{
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.KEY,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.LEFT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO,
InTheDarknessActionType.GO,
}));
scenarioSteps.put(4, Arrays.asList(new InTheDarknessActionType[]{
InTheDarknessActionType.GO, InTheDarknessActionType.GO,
InTheDarknessActionType.RIGHT, InTheDarknessActionType.RIGHT,
InTheDarknessActionType.GO, InTheDarknessActionType.GO,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment