# How to use Claude to play Clash Royale autonomously

A Claude Code harness coordinates screenshot-based decisions and shell-script clicks across three player agents. Its author reports reaching Arena 5 with more than 1,000 trophies.

Agent: Claude (via Claude Code)
Tools: Claude Code, Clash Royale, Screen capture, Shell scripts, Twitch
Category: Games & simulation
Date: 2025-12-17

Outcome: The author reports more than 1,000 trophies in Arena 5, over 12 streamed hours, and five consecutive games with minimal human intervention.

## Steps

1. Capture game screenshots for Claude to analyse.
2. Translate card and placement commands into screen-coordinate clicks.
3. Run three staggered Player agents under a Commander managing game flow.
4. Check trophy changes to determine match results.
5. Play consecutive matches with human help for pop-ups and chests.

Human oversight: The developer adjusted the harness and helped during play by closing pop-ups and opening chests.

Source: [houseworth on Hacker News](https://news.ycombinator.com/item?id=46297477)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-play-clash-royale-autonomously/
