3D maze in browser controlled by Small Basic - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Discussion (https://litdev.uk/mybb/forumdisplay.php?fid=4) +--- Thread: 3D maze in browser controlled by Small Basic (/showthread.php?tid=223) |
RE: 3D maze in browser controlled by Small Basic - litdev - 02-03-2025 I update the 3D browser code so that as an easier challenge it will pass back the current cell location, possible movement directions and you can the ask the robot to just animate to one of the available neighbor cells, ie. the robot has more internal awareness and less for the AI controller to do. This is a very simple sample code to show the new data and commands: GRWW331.000 - any questions or problems welcome. I do think that the original challlenge is much more interesting, trying to move and navigate just using the original methods provided. EDIT Fixed an issue. RE: 3D maze in browser controlled by Small Basic - AbsoluteBeginner - 02-03-2025 (6 hours ago)litdev Wrote: ... I also think the original challlenge is more interesting. RE: 3D maze in browser controlled by Small Basic - stevantosic - 02-03-2025 The simpler, the better. The newer one is excellent. RE: 3D maze in browser controlled by Small Basic - AbsoluteBeginner - 02-03-2025 (4 hours ago)stevantosic Wrote: The simpler, the better. The newer one is excellent. I wonder if climbers agree with this idea. RE: 3D maze in browser controlled by Small Basic - litdev - 02-03-2025 Haha AB, We are all coming at this with different objectives, me and you mainly for our entertainment and I think Stevan maybe wants to use as a teaching aid as well. RE: 3D maze in browser controlled by Small Basic - AbsoluteBeginner - 02-03-2025 Yes, it is possible. I was able to do test runs of my code. Now I have the following question. Can we change the format of the commands that the SB program sends to the browser engine? Can we make the "move", "left" and "right" commands send not a logical 0 or 1, but a digital value of the step by which the browser engine should change the rotation angle or position of the robot in one iteration of the calculation? |