-
Notifications
You must be signed in to change notification settings - Fork 2
Using no sleep causes problems #1
Copy link
Copy link
Open
Labels
Description
The idea is to simulate the robot going "crazy" when using code like:
sumorobot.move(LEFT)
sumorobot.move(RIGHT)
The problem is that currently there is a 50 ms sleep in the code execution to leave time to process WebSocket commands. This sleep causes the robot go to the last direction mentioned in the code. The desired outcome is that the robot would go left and right changing direction really fast.
Currently this is made possible trough detecting if there is no sleep used in the code and then the direction of the robot is changed each time the user code is executed, to simulate this desired behaviour.
Reactions are currently unavailable