You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: