Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
1e63be3
1
Parent(s):
09eba18
main.py
CHANGED
|
@@ -401,12 +401,12 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 401 |
'N + 0 0 8 2 : + 0 1 5 1']
|
| 402 |
positions = positions[3:]
|
| 403 |
#positions = positions[:4]
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
if not DEBUG_TEACHER_FORCING:
|
| 411 |
previous_actions = []
|
| 412 |
try:
|
|
|
|
| 401 |
'N + 0 0 8 2 : + 0 1 5 1']
|
| 402 |
positions = positions[3:]
|
| 403 |
#positions = positions[:4]
|
| 404 |
+
position = positions[0]
|
| 405 |
+
positions = positions[1:]
|
| 406 |
+
x, y, action_type = parse_action_string(position)
|
| 407 |
+
mouse_position = (x, y)
|
| 408 |
+
|
| 409 |
+
previous_actions.append((action_type, mouse_position))
|
| 410 |
if not DEBUG_TEACHER_FORCING:
|
| 411 |
previous_actions = []
|
| 412 |
try:
|