Skip to main content
cli-gamesWiki

Hairpin

Drive a kart with free steering and six gears around six circuits, and find the fastest line through each one.

Hairpin in play
guidesView Game Page →Last updated 2026-10-17

Hairpin

Drive six circuits with manual throttle, adjacent gear shifts and free steering. The kart keeps its heading until you turn it: taking a shorter inside line can save time. Brake before tight corners, avoid sand and puddles, and keep clear of barriers and shoulder obstacles.

Practice is solo with no deadline. Race runs two laps against three rivals. Every circuit is available from the start: Copper Oval and Willow Park are easy; Quarry Loop and Reservoir Run are medium; Switchback Ridge and Night Ribbon are hard. Multiplayer is planned. The upgrade shop is for a later build.

First moves

Choose a mode, then a track. The track picker shows a full map of the highlighted circuit.

  • Up / Down - highlight a mode.
  • Enter - choose the mode, then confirm a track.
  • Arrow keys - browse the track picker.
  • Up - hold to accelerate; release to coast.
  • Down - hold to brake.
  • Left / Right - steer.
  • 1–6 - shift to the next or previous gear.
  • Space - spend your one boost.
  • P / R - pause / resume.
  • K - toggle sound.
  • M - return to the garage during a run.
  • N - return to the garage after finishing.
  • Q - quit.

The corner dials show speed and RPM. Start in first gear and shift up near the rev counter's red zone. The Context panel keeps the controls and rules beside the game.

More room on desktop

Ctrl+B, then F expands Hairpin within the browser, keeping your tabs and address bar. Esc restores the normal panels. Your chosen shell frames the game.

The bottom bars reveal translucent panels. Drag a panel's title to move it, or its edges and corners to resize it. These gestures keep the game's keyboard control. Click inside a panel or use Ctrl+B, then Tab to transfer focus; the yellow marker shows which panel owns the keyboard.

Desktop manual play uses 3D when available. Phones and browsers without a usable 3D renderer keep the 2D view and the same driving rules.

Runs and records

Complete at least one Practice lap, then use F to finish. Race finishes after two laps. Best Practice laps, completed Race times and distance driven save locally in this browser. Older handling versions keep separate records. These runs do not submit ranked scores.

Write your own approach

Start Hairpin normally and choose a drive. In its terminal, enter ~/hairpin/cruise.sh & to hold about 25 km/h while you steer, or ~/hairpin/auto-gears.sh & to delegate adjacent shifts. nano ~/hairpin/cruise.sh edits your saved copy; the next launch uses the saved changes. The final & leaves the prompt available while the helper runs.

Human and program throttle and steering add within physical limits. Any held brake applies braking. Your key presses never stop a helper. jobs lists programs, kill %1 stops one, and stop releases all helper controls while the drive continues. delay 500 waits 500 milliseconds of game time; pausing freezes helpers too.

Ctrl+B, then Shift+T opens a fresh terminal. G focuses the game; T returns to the last terminal. Each terminal keeps its own history, variables and editor while sharing the files and game. Ctrl+C stops only that terminal's attached job. On a phone, use More controls → Game command to type.

For the separate deterministic workshop, type benchmark, then chmod +x gears-v2.sh and ./gears-v2.sh. fixtures chooses a repeatable track; gif and receipt export local practice evidence. standard returns to the same paused live drive. Benchmark timing and records remain separate. Live records include helper-assisted driving and stay local.

Try scripts try hairpin-starter in a disposable practice workspace. To adapt the example, clone the reviewed repository in the CLI-Games terminal:

git clone https://forge.cli-games.com/cli-games/game-starters.git ~/scripts/game-starters
hairpin
benchmark
cd ~/scripts/game-starters/hairpin-starter
nano policy.sh
./policy.sh

Use an existing clone if you already have it. After leaving the game, return to the example directory to record your edits:

cd ~/scripts/game-starters/hairpin-starter
git diff
git add policy.sh
git commit -m "Tune my example"

Keep LICENSE.txt and attribution when sharing. Cloning never runs a program or replaces edits.

Use man hairpin for the full command and sensor reference. The Script Library helps you discover examples; Git clones their repositories and records your edits. Publishing requires an assigned writable fork. The automatic-gears walkthrough shows the complete local workflow.

Play Hairpin