- Define invariants
- Generate game
- Automated playtest
Daily Incremental Game Generator with Claude Code
A harness that uses Claude Code to design, build, and playtest a fresh incremental game every day.
Via Hacker News · nickdirienzo ↗A developer wired Gemini's Computer Use model to Playwright in Java and had it play a simple button-clicking game to verify click-coordinate scaling.
“Play a button-clicking game via a browser agent” is a Games & Simulations AI agent workflow from Any. It connects Gemini in 3 steps.
A developer wired Gemini's Computer Use model to Playwright in Java and had it play a simple button-clicking game to verify click-coordinate scaling.
Guillaume Laforge built a Java loop around Gemini's computer-use preview model and Playwright's headless Chromium, with a 1000x1000 viewport. The model got a screenshot after every action and returned click actions with coordinates on a normalized 1000x1000 grid. His code scaled those to the viewport and clicked. He built a simple game where a red button moves after each click, and told the agent to click it 10 times and read the score.
The agent clicked the moving button and reported a final score of 10, which confirmed the click handling and coordinate scaling worked. The source mentions no failures in this test.
Send a fresh screenshot to the model after every action, and wait about a second first so the page has finished rendering. Otherwise the model sees a blank or half-drawn page.
Use browser control to open [URL of a simple web game] and play it by looking at screenshots and clicking, for about [number] moves. Report whether your clicks landed where you intended, and note any mismatch between screenshot coordinates and actual click positions. Stop when you've finished the moves and summarize how it went.
A developer wired Gemini's Computer Use model to Playwright in Java and had it play a simple button-clicking game to verify click-coordinate scaling.
You need Gemini.
The guide walks through 3 steps, starting with “What they did”.
A harness that uses Claude Code to design, build, and playtest a fresh incremental game every day.
Via Hacker News · nickdirienzo ↗Wire an open-source Civ clone to expose game state and actions so a GPT agent can play turns without screen scraping.
Via Hacker News · Routine8502 ↗Use an AI coding agent to build an ahead-of-time static recompiler that turns a Steam game into a native ARM64 Mac app.
Via Hacker News · adrbn ↗Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges