-CarTest added winpoint test
-added Klassendiagramm -create Constructor InvalidTrackFormatException
This commit is contained in:
@@ -222,7 +222,7 @@ public class Game implements GameSpecification {
|
||||
direction = track.getCar(currentCarIndex).getMoveStrategy().nextMove();
|
||||
if (direction == null) {
|
||||
track.getCar(currentCarIndex).setMoveStrategy(new DoNotMoveStrategy());
|
||||
direction = track.getCar(currentCarIndex).getMoveStrategy().nextMove(); //TODO: Entfernen?
|
||||
track.getCar(currentCarIndex).getMoveStrategy().nextMove();
|
||||
}else {
|
||||
doCarTurn(direction);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user