From e1e03d4ad4c9c3874ac58becd491249d5c652458 Mon Sep 17 00:00:00 2001 From: romanschenk37 <84532681+romanschenk37@users.noreply.github.com> Date: Fri, 18 Mar 2022 10:43:51 +0100 Subject: [PATCH] fixes in Game.java Method gamePhase --- src/main/java/ch/zhaw/pm2/racetrack/Game.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/ch/zhaw/pm2/racetrack/Game.java b/src/main/java/ch/zhaw/pm2/racetrack/Game.java index c7dbfbb..56fbf31 100644 --- a/src/main/java/ch/zhaw/pm2/racetrack/Game.java +++ b/src/main/java/ch/zhaw/pm2/racetrack/Game.java @@ -183,7 +183,6 @@ public class Game implements GameSpecification { userInterface.printTrack(track); Direction direction = track.getCar(currentCarIndex).getMoveStrategy().nextMove(); doCarTurn(direction); - int winner = getWinner(); if(allCarsCrashed()) { return NO_WINNER; }