You are controlling a car racing through a series of checkpoints. Each checkpoint is located on position indicated with
x and
y.
Which checkpoint to target is given by
checkpointIndex pointing to a value in the checkpoints given as initial input.
Checkpoints are repeated when given as inputs. (in difference to CSB)
The game is played on a map
16000 units wide and
9000 units high. The coordinate X=0, Y=0 is the top left pixel.
The checkpoints work as follows:
- The checkpoints are circular, with a radius of 600 units.
- The disposition of the checkpoints are set by the testcases.
- No checkpoints are overlapping.
The car work as follows:
- Every turn it takes a new command given a position and a THRUST indicating where to drive.
- It will at max turn 18 degrees from where the current heading are.
- When the heading is set, car uses the given thrust to drive in the new direction.
- To enter a checkpoint, the center of a car must be within 600 units of the checkpoints center.
You
lose if:
- You use more than 600 rounds.
- You do not supply a valid action.
You
win if:
- You visit all checkpoints as given by inputs before the time is out!