Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

No. I didn't use data storage this time. I taught him by myself. And local area shown with red line circle we can see on the screenshot. Also folk's hut do not prevent workbot's passage to water (I mentioned that another workbot can easyly walk to).

I do not think that the lack of spaces between the huts will "prevent" all bots from walking to the water.  I meant that where this bot is located relative to the water might be south of the huts.  The red circle is showing the area that the program will search for the nearest water to find the shortest path, and that area includes about 100 huts.  The program would calculate the lengths of the paths including those through the huts, but since the only paths through them are moving east-west between the rows (rather than moving north through non-existent gaps between huts), the amount of time to calculate all of those times for thousands of combinations of pairs of the 100 huts is so large that this bot doesn't move.   If there were gaps, the program would find paths using them in a shorter amount of time and then could find the shortest path and thus the "nearest" water.  The other bot that you mentioned no doubt has nearby water that is not reached by a path through the blockade of huts, and that long calculation and comparison of times would not be as great.

Maybe you are right... Or maybe not. I'll check it and write you back.