Hello everyone! I’d like to share a small side project of mine.
It’s a turn-based strategy game you can play directly in your browser against AI. No downloads or API keys required, and it even works offline.
- You can play against heuristic AI strategies or trained microGPT-based models.
- One of my goals with this project was to explore how we can use AI to learn more about the technology itself, rather than just relying on smart models to do all the thinking for us.
- For anyone interested in digging deeper, it is also possible for you to train your own AI variants and see how they perform against the built-in models. Or perhaps even build your own game and models. It’s quite a journey!
A few more details about the project:
- How it was built: Most of the game was developed with the help of
gpt-6-astraandgpt-6.1-sol. - Challenges: AI couldn’t really come up with a compelling use case on its own. I had to think through and design the concept myself, then iterate quite a bit to reach this MVP. Along the way, I also had to research what microGPT is and what it can actually do.
- What I learned: It’s fascinating how we don’t necessarily need to be AI engineers to experiment with model development, at least to a certain extent. With some understanding of the underlying techniques, we can guide AI to help us explore and build things we might not otherwise have attempted.
Want to try it?
You can play the game here: Hearthline · a tiny kingdom, a consequential turn
Benchmarks
Here are a few charts to help illustrate each model's performance
How the heuristic AI models perform against each other:
How each version of trained models performed against the heuristic AI:
Interested in experimenting further?
See the repository for more details: GitHub - aprendendo-codex/hearthline-microgpt: A turn-based game where you play against opponents powered by heuristics or microGPT models. · GitHub
The repository includes a few scripts and resources to help you:
- Run the game headlessly, allowing you to develop and train your own model for this game.
- Explore how the game and its AI models were built.
- Use the included
llms.txtto let Codex or another coding agent guide you through these experiments.
Hopefully, this inspires a few people to experiment with AI in a more hands-on way. And if you come up with interesting models or ideas, I’d love to hear about them!




