mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-28 04:04:42 +02:00
Merge branch 'master' of https://github.com/inf112-v20/Fiasko
This commit is contained in:
@ -94,4 +94,12 @@ public class BoardTest {
|
||||
robotList.add(robot);
|
||||
new Board(tileGrid, wallGrid, robotList);
|
||||
}
|
||||
@Test
|
||||
public void killRobotReducesAmountOfLivesByOne () {
|
||||
Robot robot = board.getAliveRobots().get(0);
|
||||
for (int i = 0; i < 3; i++) {
|
||||
board.moveRobot(robot.getRobotId(), Direction.SOUTH);
|
||||
}
|
||||
assertEquals(2, robot.getAmountOfLives());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user