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