Remote agent/Agent logic/PicoLisp: Difference between revisions

Content added Content deleted
m (Improper use of implementation template--that's for languages, not tasks)
m (Fixed syntax highlighting.)
 
Line 1: Line 1:
This is the client for [[Remote agent/Agent logic]]. For the server, see [[Remote agent/Simulation#PicoLisp]].
This is the client for [[Remote agent/Agent logic]]. For the server, see [[Remote agent/Simulation#PicoLisp]].
<lang PicoLisp># Global variables:
<syntaxhighlight lang="picolisp"># Global variables:
# '*Sock' is the TCP socket to the server
# '*Sock' is the TCP socket to the server
# '*Dir' is a circular list of direction structures
# '*Dir' is a circular list of direction structures
Line 182: Line 182:
(pack " "
(pack " "
(: field)
(: field)
(if (: ball) (lowc @) " ") ) ) ) )</lang>
(if (: ball) (lowc @) " ") ) ) ) )</syntaxhighlight>
Output:
Output:
<pre>: (gameClient "picolisp.com" 54545)
<pre>: (gameClient "picolisp.com" 54545)