Skip to content
Join 7,000+ leaders following Alastair's work on LinkedIn.

Playground

AI vs. The Lease Trap

A browser arcade game I built the night before a two-day AI workshop for solicitors.

Start screen: AI vs. The Lease Trap, over a painted Irish main street at night.

Play the gameWatch it play itself

It runs in Chrome, Edge, Firefox or Safari. On a phone, turn it sideways.

Why I made this

I was about to run a two-day AI workshop with a group of solicitors. The night before, I decided I'd build them a game, just to show them what can be created with AI now.

For the workshop I'd written a scenario: Ballyfintan Roast & Brew Ltd. v. Vale Property Developments Ltd., a small coffee business about to sign a commercial lease that's full of traps. The solicitors had to find the problems in that lease. The game is built on the same scenario, so the enemies are the same clauses they'd spend the workshop pulling apart.

The night-before build took around 60 minutes of wall-clock time, and my own time was probably just over 10 minutes of that. The rest was Claude Code building what I asked it to build, while I looked at the result and asked for the next change. I think that ratio is the most important part of the story.

Rain, red tape and three bureaucrats going down at once.
Rain, red tape and three bureaucrats going down at once.

How it came together

The night before, about 1:50 to 2:45am.

  1. The first version: a working canvas game with seven clause enemies and a draft-lease boss.
  2. Proper sound, with music that adds layers as you power up and a faster, darker loop for the boss.
  3. Bureaucrats: clear, easy-to-destroy bad guys who walk in along the road and go down in one hit or a stomp.
  4. Arthur: I asked for an Arthur Dent-style local Irish solicitor, and the robot sprite became a rumpled man in a tweed jacket with a mug of tea, a towel and a glowing tablet.
  5. The town: a painted Irish main street in the style of Kinsale or Westport, with slate roofs, gilded shopfronts, bunting and a mountain behind.
  6. Hitchhiker's Guide sound effects.

The next morning, about 8:30 to 9:15am.

  1. A self-playing demo mode, so the game could run on a screen in the room as a backdrop, with a QR code so people could play on their phones.
  2. Scaling fixes so the text stayed readable on a big projector.
  3. Arthur's ammunition became tumbling sealed envelopes with red wax seals.