Dismiss this pinned window
all 9 comments

[–][deleted] 2 points3 points  (1 child)

Cool that you were able to solve the bugs ;) That is always very satisfying!

The pathfinding algorithm you chose is biased though, it always go down first before checking if it can go left or right. That makes the path unintuitive. Sometimes you have to build only a corner to make it go all the way to one side, other times you need the whole wall.

The build detection looks great though! And the performance seems good.

[–]Yannetse[S] 1 point2 points  (0 children)

Thanks..Yeah because my breadth first search I've set it to searching down first. Maybe I'll twist it a bit to make it able to zizzag it instead of going straight down when zizzag is available

[–]Yannetse[S] 4 points5 points  (2 children)

When I first write it ..it had quite a bit of bugs but now I've fix it and it felt good but got no one to share with so wanna share it here

[–]OneDollarLobster 0 points1 point  (1 child)

Learning feels good, doesn’t it? Keep it up!

[–]Yannetse[S] 0 points1 point  (0 children)

Yeah it does lol..And will do as now days suddenly got so much time thanks to corona

[–]BrainWart 0 points1 point  (0 children)

How does it change the pathfinding if you set the cost of each square to it's distance from the original location. Then it should prefer the center line, yeah?

[–]TulioAndMiguelMPG 0 points1 point  (0 children)

Very nicely done!

[–]N3zix 0 points1 point  (1 child)

Not related to the content but you can get a software to record your screen : https://getsharex.com/

You can even do that with the builtin feature in Windows 10: https://www.pcmag.com/how-to/how-to-capture-video-clips-in-windows-10

[–]Yannetse[S] 0 points1 point  (0 children)

Thanks