agentusecases.aiAll 2,316 use cases
Games & Simulations

Play a button-clicking game via a browser agent

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. · Nov 3, 2025

Done withGEGemini

What they did
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.
How it went
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.
Worth knowing
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.

Try it yourself with Gemini

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.

Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.

2 more accounts of this

  • Play 2048 in the browser via screenshots and clicks · tech.yahoo.com ↗
  • Fill out a multi-field web form with browser control · Reddit ↗
Read the original ↗

Source: glaforge.dev · Nov 3, 2025

Related use cases

  • GE

    Orchestrate a multi-phase RAG migration

    A walkthrough of using Gemini CLI to coordinate a complex, multi-phase cloud migration project.

    Gemini

  • GE

    Sort waste using local recycling rules

    Gemini Robotics-ER 1.5 looks up local recycling rules online, then plans and sorts objects into compost, recycling and trash bins.

    Gemini

  • GE

    Automate browser work with Gemini's Chrome agent in the background

    The poster uses Gemini's Chrome browser agent to automate browser tasks, and it keeps working while the tab is closed and they do other things.

    Gemini

  • CC

    Play RollerCoaster Tycoon

    Ramp Labs put Claude Code in RollerCoaster Tycoon.

    Claude Code

  • CC

    Add a battle-of-Alesia expansion to a 1990s game remake

    Nate Combs used ChatGPT for research and a prompt, and Claude Code implemented the expansion, iterating on his playtest feedback.

    Claude Code

  • GB

    Build four games in parallel with agents

    Four Grok 4.20 agents built a tower defense, mini Factorio, CHIP-8 emulator and roguelike shooter in parallel over a day.

    Grok Bot

Keep browsing

All 77 Gemini use casesAll 60 Games & Simulations use cases

Get 5 like this every morning

The best things people got an AI agent to do, each with the prompt to try it.

All use casesAgentsTopicsJobsNewRSSAboutContactSponsorPrivacy
Sponsors
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us
VCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor usVCVibe Coding Academy: Master AI and automate your lifeS/Ship/It Weekly: #1 AI newsletter on planet Earth+Your logo here: sponsor us