Game #23

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

View File

@ -283,7 +283,7 @@ public class Game implements GameSpecification {
if(start.getY() < finish.getY()) { if(start.getY() < finish.getY()) {
track.getCar(carIndex).increaseWinPoints(); track.getCar(carIndex).increaseWinPoints();
} }
else if(start.getY() < finish.getY()) { else if(start.getY() > finish.getY()) {
track.getCar(carIndex).deductWinPoints(); track.getCar(carIndex).deductWinPoints();
} }
break; break;
@ -299,7 +299,7 @@ public class Game implements GameSpecification {
if(start.getX() < finish.getX()){ if(start.getX() < finish.getX()){
track.getCar(carIndex).increaseWinPoints(); track.getCar(carIndex).increaseWinPoints();
} }
else if (start.getX() < finish.getX()){ else if (start.getX() > finish.getX()){
track.getCar(carIndex).deductWinPoints(); track.getCar(carIndex).deductWinPoints();
} }
break; break;