
A scheduler for bowling lanes. It packs a day’s bookings onto the lanes like Tetris pieces, so more groups fit and fewer lanes sit half-empty. I built it as a working prototype of a bowling centre’s booking sheet and demoed it to management. One click on Run Lane Tetris clears a busy Saturday’s clashes, moving only the bookings that need to move.
- A booking sheet modelled on a real till system: lanes down the side, the day along the top and a live clock
- Bookings you can work with directly: drag to move, drag the edges to resize, check groups in, start and finish them, and undo anything
- An optimiser that knows the rules: parties, leagues, VIP and ramp lanes, maintenance, shared tables and late starts, ranked so lost lane time always matters most
- Greedy placement, then repair, then a happiness pass, tried in several orders; a run never makes the board worse
- On the test days it takes a busy Saturday from 112 clashes to 0 in under five seconds
- The web demo runs the same Python in the browser with Pyodide, behind a PIN, on a Cloudflare Worker
The demo asks for a PIN. Get in touch and I’ll send you one. The source is private because it models a real business.
Gallery

Before: a busy Saturday, with clashes marked in red

After one click on Run Lane Tetris, in dark mode: no clashes

The debug tools: simulate the time of day, load test days and inspect the last run