Petr Baudis
|
83bbb30125
|
client/example: Prefer diagonal moves; some extra comments
|
2011-12-03 19:31:53 +01:00 |
|
Petr Baudis
|
ca7dbc3962
|
agent::attack_dir(): Cleanup
|
2011-12-03 19:25:39 +01:00 |
|
Petr Baudis
|
5638bfae4c
|
client/example: Moar moar debug
|
2011-12-03 19:25:27 +01:00 |
|
Petr Baudis
|
692f968e64
|
./brmlife -t: Missing break
|
2011-12-03 18:57:53 +01:00 |
|
Petr Baudis
|
cd79c56bfb
|
./brmlife -t TICKMS: Implement customizable tick length
|
2011-12-03 18:54:05 +01:00 |
|
Petr Baudis
|
65c02784b5
|
client/example: Moar debug
|
2011-12-03 16:02:04 +01:00 |
|
Petr Baudis
|
04a475efbe
|
world::max_energy: Implement upper limit for agent's energy
|
2011-12-03 15:47:00 +01:00 |
|
Petr Baudis
|
a5745ea516
|
client/example.pl PORT: Implement commandline override
|
2011-12-03 15:46:27 +01:00 |
|
Petr Baudis
|
643e33c342
|
./brmlife -p PORT: Implement commandline override
|
2011-12-03 15:46:17 +01:00 |
|
Petr Baudis
|
f9f5becd16
|
main(): Use getopts for parameter parsing
|
2011-12-03 15:43:08 +01:00 |
|
Petr Baudis
|
346b1f05a7
|
Add example Perl client
|
2011-12-03 15:37:45 +01:00 |
|
Petr Baudis
|
a8f029c81a
|
Revert spurious port number change
|
2011-12-03 15:24:29 +01:00 |
|
Petr Baudis
|
dd2109e499
|
gitignore: rawio_{cfg,map}
|
2011-12-03 14:57:10 +01:00 |
|
Petr Baudis
|
09114fa6d9
|
Main loop: Show # of agents and clients in the tick line
|
2011-12-03 14:36:04 +01:00 |
|
Petr Baudis
|
1b8a830191
|
main(): Clear screen between ticks
|
2011-12-03 14:30:31 +01:00 |
|
Petr Baudis
|
56979634bf
|
connection::thread_loop(): Detect read errors and end of file reliably
|
2011-11-30 01:52:04 +01:00 |
|
Petr Baudis
|
f161c02210
|
connection::cancel(): Enable cancelling ongoing loop
|
2011-11-30 01:51:45 +01:00 |
|
Petr Baudis
|
1fcd4e45b7
|
connection::senses(): Split to many smaller printfs
|
2011-11-30 01:40:33 +01:00 |
|
Petr Baudis
|
39b61175c1
|
connection::thread_loop(): Try different way to append to in_buf
We have seen mysterious crashes.
|
2011-11-29 23:48:53 +01:00 |
|
Petr Baudis
|
430a149a64
|
Rapidly accelerate decay_rate
|
2011-11-29 23:14:07 +01:00 |
|
Petr Baudis
|
5dcf54448e
|
agent::on_action_takes(): Call die() only if not dead
|
2011-11-29 23:11:59 +01:00 |
|
Petr Baudis
|
ded047fb40
|
Now, agents can disappear after action_takes too
|
2011-11-29 23:10:01 +01:00 |
|
Petr Baudis
|
a40cd4e87c
|
agent::move_dir(): Make sure to properly detach eaten agent from a tile
|
2011-11-29 23:08:49 +01:00 |
|
Petr Baudis
|
9c4adb5a3a
|
Preserve corpses of disconnected agents
|
2011-11-29 22:58:18 +01:00 |
|
Petr Baudis
|
fb3a8b64b2
|
Transform decayed agent to a herb
|
2011-11-29 22:50:35 +01:00 |
|
Petr Baudis
|
2a8da64385
|
Speed up simulation - 1s -> 200ms per tick
|
2011-11-29 22:27:50 +01:00 |
|
Petr Baudis
|
0a9b9f8840
|
visual: Enlarge neighborhood
|
2011-11-29 22:26:00 +01:00 |
|
Petr Baudis
|
6c20afd21c
|
drop_agents(): Do not drop agents that are dead, but still with a connection
|
2011-11-29 20:02:38 +01:00 |
|
Petr Baudis
|
12724c016d
|
connection::thread_loop(): Try harder to catch dead sockets
|
2011-11-29 19:46:33 +01:00 |
|
Petr Baudis
|
04fc7b4b7a
|
connection::actions(): Fix command masking
|
2011-11-29 19:32:08 +01:00 |
|
Petr Baudis
|
7b7b2cf76d
|
README: Test commit
|
2011-11-28 21:12:48 +01:00 |
|
Petr Baudis
|
245b47eaad
|
Merge pull request #1 from sachy/master
Added pre-gui interface
|
2011-11-28 12:12:00 -08:00 |
|
sachy
|
58d934343c
|
Added server pre-gui interface
|
2011-11-28 21:08:48 +01:00 |
|
Petr Baudis
|
bde2785d76
|
README: Document x
|
2011-11-27 19:06:00 +01:00 |
|
Petr Baudis
|
ada1d0a6c9
|
Fix agent initialization
|
2011-11-27 17:05:16 +01:00 |
|
Petr Baudis
|
de392f4c7a
|
Allow moving onto a herb, eating it
|
2011-11-27 07:53:59 +01:00 |
|
Petr Baudis
|
be64c92077
|
tile::str(): Report herb
|
2011-11-27 07:41:23 +01:00 |
|
Petr Baudis
|
529c401457
|
connection::actions(): Do not permit multiple actions of the same kind per tick
|
2011-11-27 07:37:30 +01:00 |
|
Petr Baudis
|
0e1243f86f
|
Evolve herbs dynamically based on energy
|
2011-11-27 07:33:48 +01:00 |
|
Petr Baudis
|
4d697adc83
|
Spawn some herbs at startup
|
2011-11-27 05:26:44 +01:00 |
|
Petr Baudis
|
b80ccfdffd
|
Attack, defense rates
|
2011-11-27 05:18:52 +01:00 |
|
Petr Baudis
|
ceb16277fb
|
world::move_idle_cost: Introduce, based on attr.move
|
2011-11-27 05:09:41 +01:00 |
|
Petr Baudis
|
2907cb6791
|
Connection: Add 'move' attribute to the negotiation phase
|
2011-11-27 05:07:01 +01:00 |
|
Petr Baudis
|
9cf99e0bcd
|
Connection: Add negotiation phase
|
2011-11-27 05:06:46 +01:00 |
|
Petr Baudis
|
85e143fd11
|
connection::bump(): Fix double locking
|
2011-11-27 05:05:57 +01:00 |
|
Petr Baudis
|
a36deeb1db
|
Connection: Abstract out buf_incomplete() macro
|
2011-11-27 05:05:43 +01:00 |
|
Petr Baudis
|
a151a2985d
|
agent::on_tick(): Do nothing when not placed
|
2011-11-27 04:42:52 +01:00 |
|
Petr Baudis
|
a2a52f5884
|
World: Multiply all constants by ten for higher granularity
|
2011-11-27 04:41:41 +01:00 |
|
Petr Baudis
|
812e0da79b
|
agent::spawn(): Introduce
|
2011-11-27 04:30:18 +01:00 |
|
Petr Baudis
|
7714906baa
|
agent::spawn_at(): Disassociate from constructor, allow tile == NULL
|
2011-11-27 04:28:16 +01:00 |
|