Hi AB,
This is harder than I thought it would be, mainly due to the latency in communication, which I guess is a real issue for physical control systems.
The server just stores the current state for each user, and only resets everything when it hasn't been updated for over 60 seconds. Since the browser is continually updating to the server, you would bave to close browser and stop SB sending commands for 1 munute to reset everything.
Or you could just send the command below when you close SB or just run it from another program at any point.
I will probably reduce the timeout to 1 sec anyway.
EDIT
Timeout updated to 1 sec.
I do have a SB code that does solve the maze, but its pretty slow. I can post the code or leave it just now if you are having fun working on it.
This is harder than I thought it would be, mainly due to the latency in communication, which I guess is a real issue for physical control systems.
The server just stores the current state for each user, and only resets everything when it hasn't been updated for over 60 seconds. Since the browser is continually updating to the server, you would bave to close browser and stop SB sending commands for 1 munute to reset everything.
Or you could just send the command below when you close SB or just run it from another program at any point.
Code:
LDNetwork.SendWebRequest("https://litdev.uk/apps/maze3D/maze3D.php?action=set&move=0&left=0&right=0")
I will probably reduce the timeout to 1 sec anyway.
EDIT
Timeout updated to 1 sec.
I do have a SB code that does solve the maze, but its pretty slow. I can post the code or leave it just now if you are having fun working on it.