---
agent:
  instructions: "Use this search API to find apps, tools and games built with AI across this catalog with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://justbuildapps.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://justbuildapps.com/for-agents"
---

# Presidential Panic

> I built a satirical browser game to share with friends (Hormuz Havoc: you play an American president managing a crisis in the Middle East…

Page: https://justbuildapps.com/app/8936 · Markdown: https://justbuildapps.com/app/8936.md

I built a satirical browser game to share with friends (Hormuz Havoc: you play an American president managing a crisis in the Middle East, only "loosely" inspired by current events). I had good fun making this, but that's not necessarily the interesting part. The interesting part was that within a few hours of sharing it with my friends, some of them set about trying to overrun the leaderboard by launching a swarm of AI bots to learn the game and figure out how to get the highest score. This set off a game of cat-and-mouse as they found vulnerabilities and I tried patching them. Within hours of sharing, someone used the Claude browser extension to read game.js directly. Large parts of the scoring formula, action effect values, and bonus thresholds were sitting in client-side JavaScript - this was a trivial thing even a human could've found, but a human would've still had to play the game, whereas the AI bot just optimised directly against the scoring formula. It meant that the first AI already scored 2.5x higher than the best human player by optimising directly against the source code rather than playing the game. Straightforward fix: moved the entire game engine server-side. The client is now a dumb terminal, it sends an action ID, receives a rendered state. No scoring logic, no bonus thresholds, no action effects exist in the browser. The live score display uses a deliberately different formula as misdirection. This increased the difficulty in finding bot-enabled hacks, so the subsequent bots tried brute-forcing the game, trying to game the RNG functions, and other methods. But the next winning bot found a vulnerability where the same signed session token could be replayed. It would play turn N, observe a bad random event, replay the same token for turn N, get a different RNG outcome, keep the best one. Effectively branching from a single game state to cherry-pick lucky outcomes across 30 turns. Managed to 1.5x the previous bot's high score.

## Facts

- Category: Games
- Pricing: not known (check the app's own site)
- Claimed: not yet. The builder hasn't claimed this listing (site: hormuz-havoc.com).
- Listed via: https://news.ycombinator.com/item?id=47729477

## Links

- Live app: https://www.hormuz-havoc.com/
- On JustBuildApps: https://justbuildapps.com/app/8936

## Built this app?

This listing hasn't been claimed by its builder. Claim it to put it on your JustBuildApps profile with all its details: email automatejobhunt@gmail.com or message https://x.com/justbuildapps for your claim link.

## Alternatives

- [Browser games made with AI \| Playground Arcade](https://justbuildapps.com/app/9009): Hello, HN friends. I spent many happy IT lessons messing around on Newgrounds when I was a kid. And, to further age me - Rotten and…
- [cooked](https://justbuildapps.com/app/9189): I'm a father of two, 7 and 12. They are obsessed with Roblox, especially Rivals. Like a lot of parents, we did not love it. We tried the…
- [Hallucinating Splines \| AI agents build SimCity cities](https://justbuildapps.com/app/8626): This is a weekend project that spiraled out of control. I was originally trying to get Claude to play a ROM of the SNES SimCity. I…
- [Emergent](https://justbuildapps.com/app/9269): I built an artificial life simulator that fits in one HTML file (~1400 lines ~50KB) with Claude Opus 4.6, interestingly, I didn't even ask…
- [Emscripten-Generated Code](https://justbuildapps.com/app/9211): I think the very first video game I ever played was Bugdom by Pangea Software, which came with the original iMac. There was also a shooter…
