-CarTest added winpoint test

-added Klassendiagramm
-create Constructor InvalidTrackFormatException
This commit is contained in:
Andrin Fassbind committed 2022-03-23 08:53:40 +01:00
1 parent b8dda0b96a
commit b1a4f3b3db
2 files changed
+98 -68

No files matched your search

@@ -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);
}