fixes in Game.java Method gamePhase
This commit is contained in:
parent
63204a4b29
commit
e1e03d4ad4
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue