|
Post by Brandon Parker on Mar 1, 2022 2:52:42 GMT
tsh73, now all you need is the ability to delete a wall after you accidentally place it somewhere...unless I missed something that already exists.
{:0)
Brandon Parker
|
|
|
Post by plus on Mar 1, 2022 3:44:14 GMT
tsh73, now all you need is the ability to delete a wall after you accidentally place it somewhere...unless I missed something that already exists. {:0) Brandon Parker Hmm... maybe missed something, or I did. My reading of this is that tsh73 is comparing A* method of finding shortest path from start to finish points against what he calls a wavefront method. The wavefront is both simpler and faster than A*. He has provided an great app barrowed from Cassiope34 to allow others to prove it for themselves. RFO-basic also very interesting news to me!
|
|
|
Post by tsh73 on Mar 1, 2022 7:11:07 GMT
Tick that radio button and try to drag over a wall
|
|
|
Post by plus on Mar 1, 2022 7:30:38 GMT
Oh that's what he was asking about, OK.
|
|
|
Post by cassiope34 on Mar 1, 2022 9:21:17 GMT
I just added showing visited cells for wave algorithm And without obstacles A* surely wins (at least in visited points) And with some obstacles, that could be circumvented and then continue with line of sight, it still wins But on your mase which makes path run back and forth - A* covers almost as much points as wave algorithm. That's exactly what I wanted to ask you tsh73 (and also the possibility of activating the authorized diagonals) So if I understand correctly: the screenshots on the left are those of A* and those on the right are those of WaveFront! Overall, if A* tests fewer cells, why is it 7 times slower than WaveFront? plus : Everyone is welcome on the RFO-Basic forum I wouldn't want to depopulate this JustBasic forum though Cheers, Gilles.
|
|
|
Post by tsh73 on Mar 1, 2022 10:49:07 GMT
I will try later. It just not there so have to invent something (or adapt from A*) *DONE*
Yes
One have to look but my guess that using direction may include sorting and it is costly.
|
|
|
Post by Brandon Parker on Mar 6, 2022 0:54:16 GMT
Tick that radio button and try to drag over a wall Got it... I did try that, but I only clicked on a "wall" block; I did not move the mouse, so it did not delete the block I clicked on. And, I did not examine the code like I should have either... {:0) Brandon Parker
|
|
|
Post by cassiope34 on Mar 15, 2022 12:32:29 GMT
Hi, here is my Android version with an option "Hazard" you use in your first post. Maze PathFinder.apk (661.37 KB) NB : You can extract all the files from the APK including the *.bas by simply opening it with a software like 7-zip or Izarc or other zipper / unzipper. tsh73 : maybe could you add this option "Hazard" in the Just Basic version In fact, with this option, the Wavefront algorithm is sometimes longer than Astar algorithm and don't give always the shorter path !! Cheers, Gilles
|
|