This commit is contained in:
Kristian Knarvik 2020-03-24 15:26:37 +01:00
commit c98df5d359

View File

@ -397,6 +397,11 @@ public class RoboRallyGame implements IDrawableGame {
gameBoard.doLaserCleanup();
}
/**
* Runs all the programs in the correct order for the phase that is given.
* @param phase The phaser Nr we are in.
* @throws InterruptedException If it gets interupted while trying to sleep
*/
private void runProgramCards(int phase) throws InterruptedException {
List<RobotID> robotsToDoAction = new ArrayList<>();
List<ProgrammingCard> programToBeRun = new ArrayList<>();