Game #23

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

View File

@ -121,7 +121,12 @@ public class Game implements GameSpecification {
*/ */
@Override @Override
public int getWinner() { public int getWinner() {
// TODO: implementation List<Car> cars = track.getCars();
for (Car car: cars) {
if(car.getWinPoints() == 1){
return car.getID();
}
}
return NO_WINNER; return NO_WINNER;
} }