mirror of
https://github.com/guezoloic/racing-game.git
synced 2026-03-28 18:03:50 +00:00
fix(Car.java): makeMove changé == -> >=
This commit is contained in:
@@ -51,7 +51,7 @@ public class Car
|
||||
public Car makeMove(int move)
|
||||
{
|
||||
pos += move;
|
||||
if (pos == loop)
|
||||
if (pos >= loop)
|
||||
{
|
||||
round++;
|
||||
pos = 0;
|
||||
|
||||
Reference in New Issue
Block a user