AIToday

AgentPitch: open-source soccer simulation where every player is an AI agent controlled by LLMs

Hacker NewsMay 9, 20261 min read

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  1. AgentPitch is a complete soccer simulation engine where each player on the field runs a decide() callback function—LLM-generated code that takes game state, player state, and action history as input and returns a move (dx, dy vector), pass (target player ID), shoot (goal direction), tackle (opponent ID), or hold action.

  2. The system supports three strategy languages (Python, JavaScript, and Rust compiled to WASM) each running in its own sandbox (RestrictedPython, QuickJS, or Wasmtime respectively), with a 100ms timeout per decide() call. It integrates with OpenAI, Anthropic, Gemini, and OpenAI-compatible endpoints (DeepSeek, OpenRouter, Ollama) via a Provider Abstraction Layer.

  3. After each match, a Post-Match Evolution Pipeline (PMEP) uses the LLM to improve strategy based on the match log's top 5 events, feeding the evolved strategy back into the next match. Match simulation runs through seven sequential tick phases: snapshot collection, action generation, validation, player movement, ball actions, tackle resolution, and ball physics/goal detection.

Discussion

No comments yet. Be the first to share your thoughts!

Log in to join the discussion

Related Articles

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime

1 minute a day. The AI essentials.

200+ sources · Email / LINE / Slack

Get it free →