Influence maps are a visualization of danger by a computer-controlled entity in many types of games. For simplicity think about your game map as a tile map with dimension (n,m) with a player vs player controlled AI.
In this scenario, player can move his units by one cell and if near an enemy unit, attack it. Same rules are for enemy units, with a centralized enemy AI (no single agents).
With this in mind, here my quick example:
It’s a small demo of how to create a small AI (I mean, not real AI, just a first version of computer opponent) for turn based and real based strategy game.
For source code => https://github.com/Gornova/Wargame
And for more explanation on my blog => http://randomtower.blogspot.it/2015/11/wargame-simple-ai-experiment.html
Please give me feedback and ideas, I’m always open to discussion!