There isn't much secrets to how fast the game was developed : knowledge of the engine and hacky code.
As for the pathfinding mechanism : every province has a list of "neighbors" to which they are connected. When choosing a province to move to the AI will try to take the most advantageous one. Note that I completely forgot to add a case where the AI wants to get back to a province it has already conquered so it gets stuck whenever too much of the board gets red. Oops.
← Return to game
Comments
Log in with itch.io to leave a comment.
how did u do this much in less than 2 days? Also what is the mechanism behind your path finding between establishments.
Hey, thanks for playing !
There isn't much secrets to how fast the game was developed : knowledge of the engine and hacky code.
As for the pathfinding mechanism : every province has a list of "neighbors" to which they are connected. When choosing a province to move to the AI will try to take the most advantageous one.
Note that I completely forgot to add a case where the AI wants to get back to a province it has already conquered so it gets stuck whenever too much of the board gets red. Oops.
Oh I was wondering why the enemy never goes back to its own establishment