Game Mainframe

R × Rust × TrumpScript × Piet

Crazy Race

A server-rendered, turn-based 1v1 race for desktop and mobile. Play online or share one device.

Online

Create a race

Online

Join a rival

Same device

Local 1v1

Take turns on one phone, tablet, or computer. Player 1’s choice stays hidden while the device is passed.

How the race works

Reach segment 20 first. Accelerate spends 1 energy, Drift restores energy and is strongest on curves, and Piet Boost spends 3 energy for the largest move. The track stays fixed during one race but a fresh default circuit is generated whenever the container starts.

Four-language engine

R generates the circuit. Rust owns networking and game state. TrumpScript runs the announcer through its original Python interpreter. Piet reads the live round, terrain, comeback gap, and energy state to calculate a changing boost.

Piet easter egg
This is the actual adaptive image program from piet/boost_oracle.ppm. It reads round, terrain, comeback gap, and energy, then computes 1 + (sum mod 4) for a changing +1 to +4 boost.