fix(Car.java): makeMove changé == -> >=

This commit is contained in:
2025-11-09 12:05:57 +01:00
parent 05784f3800
commit 15a60ec5e9

View File

@@ -51,7 +51,7 @@ public class Car
public Car makeMove(int move)
{
pos += move;
if (pos == loop)
if (pos >= loop)
{
round++;
pos = 0;