Remote agent/Simulation: Difference between revisions

Logic error
m (Wrong command character)
(Logic error)
Line 98:
(out *Sock
(case @ # Command character
("\^" # Forward
(ifn ((car *Dir) *Agent) # Hit wall?
(prin "|") # Yes: Bump event
Line 113:
((not (: ball)) (prin "s")) # No ball in sector
(*Ball (prin "A")) # Agent full
(T (setq *Ball (: ball))) ) ) )
(setq *Ball (: ball))
(=: ball) ) ) ) )
("!" # Drop ball
(with *Agent
Anonymous user