Game #23

Merged
schrom01 merged 43 commits from Game into main 2022-03-20 16:56:34 +01:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit e1e03d4ad4 - Show all commits

View File

@ -183,7 +183,6 @@ public class Game implements GameSpecification {
userInterface.printTrack(track); userInterface.printTrack(track);
Direction direction = track.getCar(currentCarIndex).getMoveStrategy().nextMove(); Direction direction = track.getCar(currentCarIndex).getMoveStrategy().nextMove();
doCarTurn(direction); doCarTurn(direction);
int winner = getWinner();
if(allCarsCrashed()) { if(allCarsCrashed()) {
return NO_WINNER; return NO_WINNER;
} }