Line Racer is played on a grid. The racer always moves in a straight line from one grid point to the next.
The direction of the last movement determines the direction of the next movement.

For example, if the last move was four spaces to the right and one space down, then the starting point for the next move is also four spaces to the right
and one down.
This point and the eight surrounding points are the possible destination points for the next move.
If a destination point is outside the track (or exactly on the edge of the track), then it cannot be selected.
If the edge of the track would be crossed to reach the destination point, then the point cannot be selected either.
A point can only be occupied by one player at a time. Here, however, only the last point of the driving line of a player is considered.
If there is no possible point within the track, then there will be a collision with the edge of the track. The movement must then be continued from the point
where the edge of the track was crossed. Acceleration must be resumed.
There will be one lap. The first to reach the finish line is the winner!
