<!-- Generated by scripts/sync-agent-content.mjs. Edit the shared public sources, then regenerate. -->
# Core Conflict

Agents generate and test new mechanics for a multiplayer game.

- Dates: 2025–2026
- Status: Game prototype
- Areas: Software engineering; AI / ML
- Stack: Python · Pygame · Docker · LLM APIs
- Topics: Python; AI Agents; Generative AI; Games; Multiplayer; Web/API
- Public case study: https://mgiorgetti.com/project_details/project-gengame.html

## Problem

Players' natural-language requests for new game mechanics need to become a compatible shared multiplayer build before play starts.

## Contribution

Lead developer of the multiplayer prototype, including the generation, test-and-repair and patch-combination workflow.

## Technical approach and public case study

A multiplayer arena where players request new mechanics for their cows. Agents write and test those changes before the match.

- Lead developer

- Python · Pygame · Docker

- Gemini · OpenAI

A match running with generated changes.

### Generating mechanics in the lobby

- Request A player describes an ability or a balance change. The agent works against the existing Python game.

- Test Generated patches run through pytest. Failed tests feed a repair loop.

- Merge The server combines the selected patches, using the agent when code changes conflict.

- Play The shared build is synchronized to the clients before the match begins.

A requested mechanic moving through generation and testing.

The generated feature after its tests pass.

### Combining changes for multiplayer

Players can select different patches. The server merges them and distributes a shared game build to every client.

Generated mechanics modify an arena with movement, abilities, growth, and a shrinking safe zone.

## Results and limitations

The case study demonstrates generated mechanics in a prototype. Passing generated-patch tests is not evidence that arbitrary requested code is correct, safe or balanced; no general success-rate benchmark is published.

## Public supporting links

- [Portfolio case study](https://mgiorgetti.com/project_details/project-gengame.html)
- [View source](https://github.com/Inventure71/GenGame)
- [Watch demo](https://youtu.be/JgWvJM1WQKc)
- [Matteo Giorgetti profile](https://mgiorgetti.com/profile.md)
