-CarTest added winpoint test

-added Klassendiagramm
-create Constructor InvalidTrackFormatException
This commit is contained in:
Andrin Fassbind
2022-03-23 08:53:40 +01:00
parent b8dda0b96a
commit b1a4f3b3db
2 changed files with 98 additions and 68 deletions
@@ -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);
}