Playground

Pit Window

Eight laps. Pick your pace, watch the tyres and choose when to pit. Every cost is visible; take as long as you like.

Worked example

The playable controls load with JavaScript. With scripts off, this original v1 example and the full rules below stay readable. Schedule A's best attainable total is 801 fictional time units.

  1. Lap 1, Clear: Push. 95 units; 7 tyre points remain.
  2. Lap 2, Abrasive: Push. 95 units; 3 tyre points remain.
  3. Lap 3, Clear: Push. 99 units; 0 tyre points remain.
  4. Lap 4, Caution: Conserve, pit first. 110 units; 9 tyre points remain.
  5. Lap 5, Rain: Conserve. 104 units; 8 tyre points remain.
  6. Lap 6, Clear: Conserve. 104 units; 7 tyre points remain.
  7. Lap 7, Abrasive: Push. 95 units; 3 tyre points remain.
  8. Lap 8, Clear: Push. 99 units; 0 tyre points remain.

The complete rules

The goal is the lowest total across eight laps. These are fictional integer time units, not seconds or real racing predictions. Every schedule is known before you drive. There are no random crashes, hidden costs or timers to beat.

Track conditions

Clear
No track surcharge.
Rain
Conserve +0, steady +3, push +10 time units.
Caution
Push +5 time units; a pit costs 6 instead of 18.
Abrasive
Every pace uses one extra tyre point.

How the best total is calculated

A small dynamic-programming solver compares all legal pace and pit choices from each lap and tyre state. It uses the same lap-cost function as the previews and committed history. It calculates the least remaining cost, including future tyre effects, rather than assuming that the fastest immediate lap is best. Different plans with the same total all count as optimal.

Each history row's extra cost is its lap cost plus the best remaining cost afterwards, minus the best remaining cost beforehand. The eight values sum to your finish minus the best attainable total. Inspect one best plan after finishing if you want to replay the decisions.

Your Daily result

Progress and the first completed Daily result are saved on this device when local storage is available. Resetting a finished Daily replays it while keeping that first record; New Practice starts a different schedule with unlimited retries. Original v1 saves keep their original schedules and results; new Daily and Practice runs use v2. A blocked or corrupt save leaves a usable game and a visible saving notice. Nothing is sent to a leaderboard.

Back to Playground