Game #23
|
@ -283,7 +283,7 @@ public class Game implements GameSpecification {
|
|||
if(start.getY() < finish.getY()) {
|
||||
track.getCar(carIndex).increaseWinPoints();
|
||||
}
|
||||
else if(start.getY() < finish.getY()) {
|
||||
else if(start.getY() > finish.getY()) {
|
||||
track.getCar(carIndex).deductWinPoints();
|
||||
}
|
||||
break;
|
||||
|
@ -299,7 +299,7 @@ public class Game implements GameSpecification {
|
|||
if(start.getX() < finish.getX()){
|
||||
track.getCar(carIndex).increaseWinPoints();
|
||||
}
|
||||
else if (start.getX() < finish.getX()){
|
||||
else if (start.getX() > finish.getX()){
|
||||
track.getCar(carIndex).deductWinPoints();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue