← sources

AI playing my game

source: reddit (reddit:gamedev)published 2026-09-23 14:06ingested 2026-09-24 02:37

retained text

I’ve been working on my turn-based project for YEARS, since before LLMs existed… and this post is not about ai development anyway. 

I just want to share something I just did and it blew my mind.

I created a way for an llm to connect to my game through an mcp connection, and it’s actually playing my game. I think its implementation was easy because I’m using an event based ECS system, so anything can emit and subscribe to events, so wiring in this system was just about adding a probe class, that’s sending and receiving events. The llm will read the data, imagine the world state, and make allowed moves (that I still need to define largely). 

I hadn’t even thought about this possibility, but it turned out to be relatively simple to implement. I still can’t comment much on how good it’s at playing it, but I’m definitely going to watch it with a bag of chips in my hands. 

Anyone else done something similar?

document fetched 2026-09-24 00:28 · canonical https://reddit.com/r/gamedev/comments/1wo6zhs/ai_playing_my_game