Topic: How does the AI rate port spaces?
kaputtnik Topic Opener |
Posted at: 2018-02-18, 16:04
I have a map with one available port space for both the player and the ai. If the ai reaches it, i can read in console:
How can i force the ai to build a port at this place (the only port space)? Is there anything i can do, e.g. edit the map to make the AI Fight simulator for Widelands: |
Tibor |
Posted at: 2018-02-18, 19:44
The most important aspect is amount of free space (without enemies but also without own territory). AI is using some checking radius and walk from the port space and if owned territory is found - the score is lower. Try to look here: https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/src/ai/defaultai_seafaring.cc#L27 Top Quote |
kaputtnik Topic Opener |
Posted at: 2018-02-19, 06:28
Cool, thanks After placing some rocks and trees:
Fight simulator for Widelands: |