Im planning a turn-based strategy game.
But the problem is, how to implement AI for it in code level?
I was thinking that when it is computer’s turn, some method would be launched. This method would get the “world” as parameters so it could place the computer’s soldiers to correct places etc…
That sounds acceptible, probably it would work too. But how is the AI applied usually in turn-based games? Any hints what I should avoid? etc?
