Compare commits
No commits in common. "b9803c8357bd8b318498e4b51f77f6ce2536aab0" and "9fc1a1ef7fe1470cae72f72adb7f76996655003a" have entirely different histories.
b9803c8357
...
9fc1a1ef7f
|
@ -1250,6 +1250,8 @@ fn add_command! (turtle_id, command) -> {
|
||||||
update! (command_id, inc)
|
update! (command_id, inc)
|
||||||
update! (turtle_commands, append (_, (turtle_id, idx, command)))
|
update! (turtle_commands, append (_, (turtle_id, idx, command)))
|
||||||
let prev = do turtle_states > unbox > turtle_id
|
let prev = do turtle_states > unbox > turtle_id
|
||||||
|
print!("previous state: {turtle_id}", prev)
|
||||||
|
print!("applying command", command)
|
||||||
let curr = apply_command (prev, command)
|
let curr = apply_command (prev, command)
|
||||||
update! (turtle_states, assoc (_, turtle_id, curr))
|
update! (turtle_states, assoc (_, turtle_id, curr))
|
||||||
:ok
|
:ok
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user