Remote agent: Difference between revisions

m
added a blank line
(Removed Vptopic)
m (added a blank line)
 
(3 intermediate revisions by the same user not shown)
Line 5:
# [[Remote agent/Agent interface|Implement the agent side of the stream interface in a manner idiomatic to the language]].
# [[Remote agent/Agent logic|Use the agent stream interface to satisfy the end conditions]].
 
 
Here is a description of the world and commands. The stream protocol below should be common among all implementations; any agent interface implementation should work equally well with any of the world simulation implementations.
Line 39 ⟶ 40:
* While the distribution and location of the color properties is undefined, there must not be more balls of a color than there are sectors with that color property.
* There must be at least one 'space' sector without a ball in it. (The agent does not initialize while holding a ball.)
* There may be 'wall' sectors within the area (including on the interior side of the outermost rim), but the no non-wall sector may be surrounded on four cardinal sides with wall sectors.
 
== Goal ==
Line 116 ⟶ 117:
 
= Stream Protocol =
The stream protocol is simple. Every command is a single byte sent from the agent to the simulator, no line feed, no carriage return. Every event is a single byte sent from the simulator to the agent, no line feed, no carriage return. For the sake of simplicity, all bytes fall within the range of [65,90]33('!') to 124('|'), which correspondscorrespond to [A,Z]single visible grahic characters in ASCII, as well as in UTF-8.
 
== Greeting ==
Line 130 ⟶ 131:
== Commands and event codes ==
 
{| class="wikitable"
 
{|border=1
|-
|name||type||character||decimal||hex
7,794

edits