AI playground – Unity and Unreal Engine – AutoChess

by Gustaf Larsson and Valter Lindecrantz

Here you have two open implementations of an AutoChess game:  

  • Two armies fight each other autonomously.
  • Your job is to buy units and place them strategically to give your team the upper hand against your AI-competitor.
  • The AI-competitor will spawn its own units and the round will start.
  • After the round is over the board is reset and there is a planing phase before the game-loop starts over. There is no end.

Use this base project to learn how to structure a game project in a game dev engine, with imported assets, models, and animations, as well as with a complete (yet basic) GUI and AI.

The project is yours to develop further! Build smarter AIs, add more unit types, attack types (magic attacks, explosive projectiles, …) , improved GUI.

The source code is fully commented to assist you while inserting your own code. Feel also free to draw inspiration from this projects for your own game projects!

Here’s the version of AutoChess in Unity:

https://github.com/fire-walk-with-me/Auto-Chess_Unity

And here’s the Unreal Engine version:

https://github.com/valter100/AutoChess