From 5ed183c554e9f39853520a1f836a4ebfb27f78f7 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 27 Nov 2011 02:20:15 +0100 Subject: [PATCH] Add basic README + protocol description --- README | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README diff --git a/README b/README new file mode 100644 index 0000000..5b4caba --- /dev/null +++ b/README @@ -0,0 +1,32 @@ +Artificial Life Platform +======================== + +Client-server protocol: The time is quantized in ticks. +In each tick, the server sends sensor input to the agent. +Until the next tick, the client may supply actions to take +to the server. + +Both server input and client output follow the same format: + + cmd1 ... + cmd2 ... + ... + + +I.e. a sequence of lines terminated by an empty line. +Each line starts with a single word (command name), plus +some command-specific parameters. Note that newlines are +CRLF ("\r\n"), not just LF ("\n")! + +The following inputs are supported: + + tick + around + describe tiles, clockwise from top, + in the immediate vicinity of the agent + +The following outputs are supported: + + move_dir + and are integer offsets relative + to the current position