Skip to content
In Power · Tech notes

Building In Power solo with Claude: the tech notes

What this is

In Power is a geopolitics strategy game built as a plain web app: you lead one of 17 real countries through 52 weekly turns that follow the real news calendar. I'm Martin del Palacio, a journalist in Barcelona, and I made it on my own. I designed it and recorded the narration; the code, graphics and text were made with AI assistance (Claude).

This note is the technical side, for web game developers: how I worked with Claude, the game itself, playing in the browser, payments without a server, and the Google Play wrapper.

Part What it uses
Game HTML, CSS and JavaScript, no framework, no bundler
Site and press page Generated by small Python scripts
Where it runs Any desktop or phone browser, at inpowergame.com
Web payments Lemon Squeezy, license key checked in the browser
Analytics Cloudflare Web Analytics, no cookies
Android Trusted Web Activity built with Bubblewrap, Google Play Billing

How I worked with Claude

Claude did the programming; I made the design calls and checked the results. Two habits kept that workable across many sessions: a handoff file and a fixed set of coding rules.

A handoff file, RELEVO.md (Spanish for "relay"). I split the work across several conversations, such as game code, scenario updates and promotion. Each one ends by updating its own section of RELEVO.md in the project folder:

  • the current state, in a few bullets
  • what the last session changed, and which files
  • decisions that shouldn't be reopened, with half a line on why
  • what comes next, and how each item will be checked
  • known traps: open bugs, files not to touch, naming conventions

The next conversation reads it before doing anything else, so I never have to explain the project again. It's adapted from Matt Pocock's MIT-licensed "handoff" skill.

Coding rules that every session follows:

  1. Say in one line what you understood and what you're assuming. Ask first only when a wrong guess would be expensive to undo.
  2. Do the minimum that works: no options "just in case", no one-off abstractions. Game data (texts, scenarios, balance) lives in data files, not in the code.
  3. Make surgical changes: touch only what the task needs. Point out dead code or unrelated bugs, but don't fix them unasked.
  4. Write down how success will be checked, then check it by running: load the page and read the console, run node --check on the scripts. Anything that must always hold becomes a check script in the project.
  5. If a step fails its check three times, stop and report what was tried. Never weaken a check to make it pass.
  6. Finish with a table of requirement, verdict and evidence. No "pass" without a command and its output, a screenshot or a file path.

The rules draw on Andrej Karpathy's observations about how models go wrong when coding and on the verification habits Boris Cherny has described in public.

The game: plain JavaScript and data files

The whole game is HTML, CSS and JavaScript with no framework and no build step; small Python scripts generate the website and the press page. The engine (engine.js) and the interface (ui.js) sit apart from the scenario data.

Every campaign starts on Monday 12 October 2026, set by one START_DATE constant, and real events are pinned to game weeks: Brazil's runoff is week 2, Israel's election week 3, the US midterms week 4 and Taiwan's local elections week 7.

There are 17 countries with two opposing factions each, 34 ways to govern. Each faction has a grand objective and six milestones, and each week brings orders, summits, cabinet reshuffles, scandals and a dilemma. A TV bulletin shows how the world reacts. A win plays one of 34 short victory films built from what you achieved, and there's a final film for collecting them all. I recorded the narration myself.

Every Sunday a scheduled Claude task reads the news for the 17 countries, compares it with the published game and leaves proposals, with sources, in a panel. I approve or reject each one. Approved changes go into the scenario data in a coding session; the affected factions are played and balance is checked with simulation runs before anything is published. The first update is planned for after the US midterms.

In the browser, nothing to install

The game runs straight from inpowergame.com in a desktop or phone browser: there's nothing to download or install, and no account. The free weeks start on the first click.

Installing it as an app will come with the Android version, once Google approves it. The app wraps this same build, so there is only one game to maintain.

Payments without a server

On the web there is no backend of mine: the purchase and the unlock run between the browser and Lemon Squeezy.

  • Free demo, one-time unlock. The first 8 weeks of any campaign are free. The full game is a one-time US$5.99 purchase made inside the game, through a Lemon Squeezy checkout.
  • Unlock in the browser. After checkout the game unlocks on its own: it checks the license key against Lemon Squeezy's license API from the client. Nothing to host or maintain; the trade-off is that the check lives in the client.
  • Press and creator copies. Single-use 100%-off discount codes go through the same checkout and issue a real key, so there's no separate press build to keep in sync.
  • Measuring. Cloudflare Web Analytics counts visits without cookies. Next on the list is keeping the ?ref= from a link and passing it to the checkout, to see which channels bring buyers.

The Google Play wrapper

The Android version is the same web game wrapped as a Trusted Web Activity with Bubblewrap. The app bundle (AAB) is built; it hasn't been submitted for review yet. What it took:

  • Billing. Google Play requires its own billing for digital goods, so the Android build sells the unlock through Google Play Billing, as a full_game product at US$5.99, instead of Lemon Squeezy.
  • 2026 requirements. New apps must target Android 16 (API level 36) and use Play Billing Library 8; the bundle meets both.
  • Digital Asset Links. The site's assetlinks.json must carry the SHA-256 fingerprint of Google's app signing key. Without it, the app opens with a browser bar on top.
  • Account type. A company developer account skips the closed test with 12 testers for 14 days that new personal accounts must run before going to production.
  • Store listing. Titles are capped at 30 characters ("In Power: Geopolitics Strategy"), the trailer must be a YouTube link, and Russia is left out because Google Play can't take payments there. Google also has a policy on sensitive events that applies to games about current affairs.
One build, two storefronts One game build HTML, CSS, JavaScript · inpowergame.com Web Any desktop or phone browser Lemon Squeezy checkout License key checked in the browser Android Trusted Web Activity (Bubblewrap) Google Play Billing full_game product, US$5.99 One build, two storefronts One game build HTML, CSS, JavaScript · inpowergame.com Web Any desktop or phone browser Lemon Squeezy checkout License key checked in the browser Android Trusted Web Activity (Bubblewrap) Google Play Billing full_game product, US$5.99

The web and Android versions share one build; only the store that sells the unlock changes.

What worked

Most of what helped had to do with the way of working.

  • Handoffs over long conversations. Each session starts from RELEVO.md instead of from my memory, so settled decisions stay settled and nobody re-derives the state of the project.
  • "Done" means seen working. A task isn't finished until the page has loaded, the console is clean and the evidence is in the table.
  • A hard stop after three failed attempts. The session stops, tells me what it tried and I decide what to do next.
  • Small, surgical changes. Touching only what the task needs keeps every change easy to review, which matters when you didn't type the code yourself.
  • Real-world facts on a separate track. Running the code can't tell you whether an election date or a vote count is right. That is why news changes come in as proposals with sources, and I approve them before they reach the code.

Try it

Questions about any of this are welcome at info@mdpgames.com.

In Power is fiction inspired by current events: real countries, invented leaders and quotes.