yab | yet another Basic for HAIKU
Pipe Game - query - Printable Version

+- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum)
+-- Forum: Programming in yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=1)
+--- Forum: Help with programs (https://yab.orgfree.com/forum/forumdisplay.php?fid=4)
+--- Thread: Pipe Game - query (/showthread.php?tid=88)



Pipe Game - query - lelldorin - 05-14-2017

[Image: pipegame.png]

Has one of you a clever idea how I can best query whether a connection between start and goal exists?

Will be add this game in my yabDevelopment Editor as example, but i does not find a fast and easy way to query the game status.


RE: Pipe Game - query - bbjimmy - 05-15-2017

looks similar to my loopdeloop problem. pick two pionts near the goal and start and see if both are within the pipe. Im my case I was checking tpo see if points were within a loop. same problem.

Let me look at my code and see if I can explain the soulution.


RE: Pipe Game - query - bbjimmy - 05-15-2017

This explains it best. https://en.wikipedia.org/wiki/Point_in_polygon


Free Web Hosting