In this playground we will learn how to make a good AI using a search-based approach that will decide what to do by comparing different movement solutions rather than trying to find a relation between some key game objects and the direction of where to go.
We will be trying this algorithm on a multiplayer game Coders Strike Back.
Learning basic vectors
Writing classes for the game objects
Additional functions for simulating single pod's movement
Full turn simulation function
Implementing Random search (or Monte-Carlo)
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.