Hi people,
So I want to make ai for my turn-based game. It's a simple 2 player board game. Each player controls several pieces that can move in 3 directions. (I'm using the tile movement behavior) And I honestly can't figure out how to make it work as intended. My specific problems are:
How to iterate over all the computer pieces and their possible moves?
How to react to certain situations. Like if there is an enemy piece on the left of one of the computer pieces, how do I make it so that particular computer piece doesn't move (to block enemy)?
I suspect it is a bit complicated (I could be wrong) but I would appreciate any pointers