mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-25 10:44:42 +02:00
Fikser noen småfeil i makeMove()
This commit is contained in:
@ -141,14 +141,14 @@ public class RoboRallyGame implements IDrawableGame {
|
||||
sleep();
|
||||
switch (action) {
|
||||
case MOVE_1:
|
||||
moveForward(robotID);
|
||||
gameBoard.moveRobotForward(robotID);
|
||||
break;
|
||||
case MOVE_2:
|
||||
moveForward(robotID);
|
||||
gameBoard.moveRobotForward(robotID);
|
||||
moveForward(robotID);
|
||||
break;
|
||||
case MOVE_3:
|
||||
moveForward(robotID);
|
||||
gameBoard.moveRobotForward(robotID);
|
||||
moveForward(robotID);
|
||||
moveForward(robotID);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user