addad a lot more test for RobotTest

This commit is contained in:
Tobydrama
2020-02-22 14:10:50 +01:00
parent 3bd9681d22
commit a30018dee4
2 changed files with 63 additions and 0 deletions

View File

@ -82,4 +82,20 @@ public class Robot {
this.backupPosition=newBackupPosition;
}
/**
* Gets the correct flag the robot visited
* @return last visited flag
*/
public int getLastFlagVisited(){
return lastFlagVisited;
}
/**
* Gets the robots backup position
* @return robots backup position
*/
public Position getBackupPosition(){
return backupPosition;
}
}