What is the algorithm behind base building AI?
Let's say I try to make a 2D tile based base building game, but I have no idea the algorithm behind it like
- What node should I use?
- How do you even program the AI to place and build structure?
- How to prevent AI from placing structure randomly and aimlessly?
- How do AI build a wall in front of / covering the vulnerable structure?
- How to prevent AI from trying to build a structure on already occupied tile?
- How to make AI to stop building a same structure when there is already near it?