Petr Baudis
9baf771807
Incomp. Proto. Change: Maintain sync by prefixing client commands by tick id
2011-12-22 15:28:05 +01:00
Petr Baudis
23f2fce7ff
Support for breeding
...
One party initiates the breeding; the other party exerts most of the
energy if its breeding key matches. It is that party's responsibility to
set up the newborn agent's connection (but the father can pass it an
arbitrary message). Newborn is spawned immediately but can be
renegotiated on first connect.
2011-12-08 03:14:57 +01:00
Petr Baudis
b693b5d6f4
connection::actions(): agent& -> agent*, more natural agent_id handling
2011-12-08 03:02:08 +01:00
Petr Baudis
9cf99e0bcd
Connection: Add negotiation phase
2011-11-27 05:06:46 +01:00
Petr Baudis
e22c57c97f
connnection::actions(): Take agent&
2011-11-27 03:25:16 +01:00
Petr Baudis
415475cd26
connnection::senses(): Sanitize interface, take just agent&
2011-11-27 03:24:40 +01:00
Petr Baudis
b969e91bd1
around: Show 8-neighborhood
2011-11-27 03:16:11 +01:00
Petr Baudis
77e555706b
Send BUMP if move failed
2011-11-27 02:59:28 +01:00
Petr Baudis
64ea015a06
Support for agent death
2011-11-27 02:48:28 +01:00
Petr Baudis
93882f79b9
Track agent energy
...
Base energy, move energy
2011-11-27 02:32:59 +01:00
Petr Baudis
de6a4d656f
Support for command input
...
For starters, 'move_dir x y' command is supported.
2011-11-27 02:14:57 +01:00
Petr Baudis
92940b6054
Connection communication in separate thread
2011-11-27 01:24:52 +01:00
Petr Baudis
6a3d9b2e4a
Destroy agent on disconnect; another agent can connect later
2011-11-26 23:59:31 +01:00
Petr Baudis
978a080656
~connection(): Close file descriptor
2011-11-26 23:43:52 +01:00
Petr Baudis
1ed67c81b6
Maintain and broadcast current tick id
2011-11-26 23:31:28 +01:00
Petr Baudis
6b3a51139a
Support for (read-only) TCP connection agent communication
2011-11-26 23:24:06 +01:00