Claude AI Agents Build Simulator, Optimize Game Algorithm to Beat Human Score

A developer tested whether AI agents could outperform humans in the programming game The Farmer Was Replaced. Since AI agents struggle with navigating graphical interfaces directly, the strategy involved having a team of Claude agents first build a Python-based simulator that perfectly mirrored the game's mechanics and rules. Once the simulator was ready, a second team of agents would use it to iterate on and discover an optimal algorithm for harvesting sunflowers.
Development Process and Challenges
The process began with an experiment using Claude Code's "agent teams" feature to build a simple Tic-Tac-Toe game, which was successful and provided confidence for the more complex farming project. However, scaling up presented challenges: the agent team lead became a bottleneck, consuming 91% of session tokens while failing to proactively ask for human feedback to calibrate the simulator against the real game. Realizing the agent team infrastructure was becoming too over-engineered and expensive for this specific task, the developer pivoted back to using Cursor and a more direct prompting approach to successfully finalize the simulator.
Results and Algorithm Iterations
Claude Opus was allowed to run overnight, producing 10 progressively better iterations of the sunflower algorithm. These ranged from basic harvesting to micro-optimizations like nearest-neighbor tile selection and serpentine navigation. By the final iteration, the AI achieved a time of 5:21, officially beating the developer's personal best and landing at rank 30 on the global leaderboard.
The experiment demonstrated that by providing an AI with documentation and a sandbox to test its ideas, it can replace the human programmer—at least when it comes to optimizing sunflower yields in this specific game context.
The simulator created during this project is available for others to use and test with different AI models.
📖 Read the full source: r/ClaudeAI
👀 See Also

BeanWhisperer: OpenClaw AI tool generates GaggiMate pressure profiles from coffee bean info
BeanWhisperer is an open-source tool that uses OpenClaw AI to analyze coffee bean information and automatically generate or select GaggiMate pressure profiles. It pushes profiles directly to machines via WebSocket, eliminating manual JSON copying.

Building an Autonomous AI Agent System with Claude Code: A Case Study
A developer built Acrid, an AI agent that runs a company called Acrid Automation using Claude Code as its operating system. The system features 14 slash command skills, 4 sub-agents for delegation, file-based memory without vector databases, and an automated content pipeline bridging Claude with n8n via GitHub.

Real Estate Developer's AI Agent Makes First Phone Call with Context and Voice Style
A developer running a multi-agent operation for real estate reports their AI agent made its first successful phone call, using full context about deals and prospects while mimicking the developer's specific sales approach and voice style.

Analysis of Anthropomorphism in Claude Pokemon Chat Using Bayesian Models
A researcher analyzed Twitch chat messages from Claude's Pokemon benchmark to study how users anthropomorphize the AI, using Bayesian mixed-effects models on 107k messages annotated by Gemini 2.0 Flash. False belief tags were strong predictors of anthropomorphism, increasing probability from ~11% to ~45%.