Section 01
Introduction: An Innovative Project of LLM-Driven Genetic Algorithms Playing Sonic
An open-source project called sonic-llm-mutator uses Large Language Models (LLMs) as mutation operators in genetic algorithms. It interacts with a retro simulator via an MCP server to iteratively evolve Python scripts that control Sonic in a local CI/CD pipeline, exploring a new paradigm for AI autonomous gaming. The core of the project is to let LLMs directly generate and modify game control code, optimizing performance through evolution—differentiating it from traditional reinforcement learning methods.