Commit graph

  • f2ca1972a5 Example client: GNU Screen needs explicit locking master Petr Baudis 2011-12-27 03:25:00 +01:00
  • 41492f32bf Example client: Terminating tick with empty line is superfluous now Petr Baudis 2011-12-26 22:00:13 +01:00
  • 3bc018bc73 Example client: Track last_bred and do not attack for a while after breeding Petr Baudis 2011-12-26 21:59:54 +01:00
  • 2e42c268f1 Example client: Track agent_id in the state Petr Baudis 2011-12-26 21:59:12 +01:00
  • 5148607134 Example client: Fix pheromone ids, max is 65535; also, more cautious pheromone-based mate choice Petr Baudis 2011-12-26 21:48:58 +01:00
  • 3aae38c1cf connection::actions(): Close a connection attempting to connect to bad agent id Petr Baudis 2011-12-26 21:47:23 +01:00
  • be10580643 Report suspicious events (out-of-sync agents, unexpectedly disconnected agents) Petr Baudis 2011-12-26 21:47:03 +01:00
  • a565d5d81d Example client: Avoid herps and corpses when fully fed, helps sustainability Petr Baudis 2011-12-26 20:28:04 +01:00
  • a9884cf827 connection::actions(): Fix negotiation termination by empty line Petr Baudis 2011-12-26 20:27:29 +01:00
  • 4fb7b18dd3 Example client: Support for breeding Petr Baudis 2011-12-26 20:12:10 +01:00
  • 407daec822 connection::actions(): Do not require tick prefix during negotiation Petr Baudis 2011-12-26 20:11:19 +01:00
  • cf5586c35f connection::senses(): Enlarge buffer size, pheromones can get very long Petr Baudis 2011-12-23 19:23:16 +01:00
  • 3889fba5d4 Example client: Invest energy/5 into attack, instead of fixed 100 Petr Baudis 2011-12-23 18:49:14 +01:00
  • 60989d7588 Example client: Implement fleeing Petr Baudis 2011-12-23 18:48:29 +01:00
  • f2d3cfad0d Example client: Describe policy Petr Baudis 2011-12-23 18:38:40 +01:00
  • e97cb92979 Example client: Use the conservative default values for attributes Petr Baudis 2011-12-23 18:34:24 +01:00
  • 4c1b54c993 Example client: Implement pheromone processing Petr Baudis 2011-12-23 18:33:16 +01:00
  • 043c92f850 Example client: Document the state structure Petr Baudis 2011-12-23 17:59:57 +01:00
  • 11511840bd Example client: Fix secrete command issue Petr Baudis 2011-12-23 17:57:08 +01:00
  • df066955cd Example client: Add many comments Petr Baudis 2011-12-23 17:55:18 +01:00
  • 9baf771807 Incomp. Proto. Change: Maintain sync by prefixing client commands by tick id Petr Baudis 2011-12-22 15:28:05 +01:00
  • 091708f577 Incomp. Proto. Change: attack_dir gets <force> parameter Petr Baudis 2011-12-22 00:12:45 +01:00
  • 177d41cf60 Incomp. Proto. Change: breeding_key -> breeding_key1, breeding_key2 Petr Baudis 2011-12-17 00:01:45 +01:00
  • 724cf937d7 Merge branch 'master' of github.com:brmlab/brmlife Petr Baudis 2011-12-09 14:52:41 +01:00
  • 452c4a0744 Example client: Try fixing erratic movement Petr Baudis 2011-12-09 14:52:28 +01:00
  • 2b8a07dee6 Merge branch 'master' of ssh://github.com/brmlab/brmlife Petr Baudis 2011-12-09 01:37:55 +01:00
  • abe9f7d8bc Example client: Use persistent state Petr Baudis 2011-12-09 01:37:50 +01:00
  • 23f2fce7ff Support for breeding Petr Baudis 2011-12-08 03:14:57 +01:00
  • b693b5d6f4 connection::actions(): agent& -> agent*, more natural agent_id handling Petr Baudis 2011-12-08 03:02:08 +01:00
  • 8ae6051e97 Support reconnecting to agents Petr Baudis 2011-12-08 02:01:56 +01:00
  • 417a5235a0 Describe agent object lifetime Petr Baudis 2011-12-08 00:34:03 +01:00
  • 343762c3bb Make herbs die properly on energy depletion Petr Baudis 2011-12-08 00:26:20 +01:00
  • 5435014c1d Merge branch 'master' of https://github.com/sachy/brmlife Petr Baudis 2011-12-08 00:11:33 +01:00
  • 20e5b8e1eb Merge 2ca7f88721 into 96208e93ba GitHub Merge Button 2011-12-07 15:10:17 -08:00
  • 96208e93ba Pheromones: Merge tile and agent info in pheromones output Petr Baudis 2011-12-08 00:10:09 +01:00
  • 61cdd42252 README: Document pheromones Petr Baudis 2011-12-07 23:59:28 +01:00
  • 2041242142 Make herbs smell Petr Baudis 2011-12-07 23:55:37 +01:00
  • 29fddde51c Example client: Secrete a pheromone Petr Baudis 2011-12-07 23:54:17 +01:00
  • a821e72661 Introduce pheromones Petr Baudis 2011-12-07 23:54:03 +01:00
  • 61cc3ef015 connection::senses(): Clean up visual sending Petr Baudis 2011-12-07 23:28:11 +01:00
  • 2ca7f88721 Patches, patches, patches... sachy 2011-12-03 20:13:08 +01:00
  • 7e994ba763 agent::attack_dir): Don't process herbs Petr Baudis 2011-12-03 20:03:51 +01:00
  • 22b2408ba2 client/example: More succint type testing Petr Baudis 2011-12-03 19:56:37 +01:00
  • 3d0fd3ab94 client/example: Include tickid in state Petr Baudis 2011-12-03 19:53:35 +01:00
  • 56c30d4086 agent::attack_dir(): Do not deal instantkills, instead deduce just some amount of energy Petr Baudis 2011-12-03 19:46:43 +01:00
  • 83bbb30125 client/example: Prefer diagonal moves; some extra comments Petr Baudis 2011-12-03 19:31:53 +01:00
  • ca7dbc3962 agent::attack_dir(): Cleanup Petr Baudis 2011-12-03 19:25:39 +01:00
  • 5638bfae4c client/example: Moar moar debug Petr Baudis 2011-12-03 19:25:27 +01:00
  • 692f968e64 ./brmlife -t: Missing break Petr Baudis 2011-12-03 18:57:53 +01:00
  • cd79c56bfb ./brmlife -t TICKMS: Implement customizable tick length Petr Baudis 2011-12-03 18:54:05 +01:00
  • 65c02784b5 client/example: Moar debug Petr Baudis 2011-12-03 16:02:04 +01:00
  • 04a475efbe world::max_energy: Implement upper limit for agent's energy Petr Baudis 2011-12-03 15:47:00 +01:00
  • a5745ea516 client/example.pl PORT: Implement commandline override Petr Baudis 2011-12-03 15:46:27 +01:00
  • 643e33c342 ./brmlife -p PORT: Implement commandline override Petr Baudis 2011-12-03 15:46:17 +01:00
  • f9f5becd16 main(): Use getopts for parameter parsing Petr Baudis 2011-12-03 15:43:08 +01:00
  • 346b1f05a7 Add example Perl client Petr Baudis 2011-12-03 15:37:45 +01:00
  • a8f029c81a Revert spurious port number change Petr Baudis 2011-12-03 15:24:29 +01:00
  • dd2109e499 gitignore: rawio_{cfg,map} Petr Baudis 2011-12-03 14:57:10 +01:00
  • 09114fa6d9 Main loop: Show # of agents and clients in the tick line Petr Baudis 2011-12-03 14:36:04 +01:00
  • 1b8a830191 main(): Clear screen between ticks Petr Baudis 2011-12-03 14:30:31 +01:00
  • 56979634bf connection::thread_loop(): Detect read errors and end of file reliably Petr Baudis 2011-11-30 01:52:04 +01:00
  • f161c02210 connection::cancel(): Enable cancelling ongoing loop Petr Baudis 2011-11-30 01:51:45 +01:00
  • 1fcd4e45b7 connection::senses(): Split to many smaller printfs Petr Baudis 2011-11-30 01:40:33 +01:00
  • 39b61175c1 connection::thread_loop(): Try different way to append to in_buf Petr Baudis 2011-11-29 23:48:53 +01:00
  • 430a149a64 Rapidly accelerate decay_rate Petr Baudis 2011-11-29 23:14:07 +01:00
  • 5dcf54448e agent::on_action_takes(): Call die() only if not dead Petr Baudis 2011-11-29 23:11:59 +01:00
  • ded047fb40 Now, agents can disappear after action_takes too Petr Baudis 2011-11-29 23:10:01 +01:00
  • a40cd4e87c agent::move_dir(): Make sure to properly detach eaten agent from a tile Petr Baudis 2011-11-29 23:08:49 +01:00
  • 9c4adb5a3a Preserve corpses of disconnected agents Petr Baudis 2011-11-29 22:58:18 +01:00
  • fb3a8b64b2 Transform decayed agent to a herb Petr Baudis 2011-11-29 22:50:35 +01:00
  • 2a8da64385 Speed up simulation - 1s -> 200ms per tick Petr Baudis 2011-11-29 22:27:50 +01:00
  • 0a9b9f8840 visual: Enlarge neighborhood Petr Baudis 2011-11-29 22:26:00 +01:00
  • 6c20afd21c drop_agents(): Do not drop agents that are dead, but still with a connection Petr Baudis 2011-11-29 20:02:38 +01:00
  • 12724c016d connection::thread_loop(): Try harder to catch dead sockets Petr Baudis 2011-11-29 19:46:33 +01:00
  • 04fc7b4b7a connection::actions(): Fix command masking Petr Baudis 2011-11-29 19:32:08 +01:00
  • 7b7b2cf76d README: Test commit Petr Baudis 2011-11-28 21:12:48 +01:00
  • 245b47eaad Merge pull request #1 from sachy/master Petr Baudis 2011-11-28 12:12:00 -08:00
  • c86df36b9f Merge 58d934343c into bde2785d76 GitHub Merge Button 2011-11-28 12:10:18 -08:00
  • 58d934343c Added server pre-gui interface sachy 2011-11-28 21:08:48 +01:00
  • bde2785d76 README: Document x Petr Baudis 2011-11-27 19:06:00 +01:00
  • ada1d0a6c9 Fix agent initialization Petr Baudis 2011-11-27 17:05:16 +01:00
  • de392f4c7a Allow moving onto a herb, eating it Petr Baudis 2011-11-27 07:53:59 +01:00
  • be64c92077 tile::str(): Report herb Petr Baudis 2011-11-27 07:41:23 +01:00
  • 529c401457 connection::actions(): Do not permit multiple actions of the same kind per tick Petr Baudis 2011-11-27 07:37:30 +01:00
  • 0e1243f86f Evolve herbs dynamically based on energy Petr Baudis 2011-11-27 07:33:48 +01:00
  • 4d697adc83 Spawn some herbs at startup Petr Baudis 2011-11-27 05:26:44 +01:00
  • b80ccfdffd Attack, defense rates Petr Baudis 2011-11-27 05:18:52 +01:00
  • ceb16277fb world::move_idle_cost: Introduce, based on attr.move Petr Baudis 2011-11-27 05:09:41 +01:00
  • 2907cb6791 Connection: Add 'move' attribute to the negotiation phase Petr Baudis 2011-11-27 05:07:01 +01:00
  • 9cf99e0bcd Connection: Add negotiation phase Petr Baudis 2011-11-27 05:06:46 +01:00
  • 85e143fd11 connection::bump(): Fix double locking Petr Baudis 2011-11-27 05:05:57 +01:00
  • a36deeb1db Connection: Abstract out buf_incomplete() macro Petr Baudis 2011-11-27 05:05:43 +01:00
  • a151a2985d agent::on_tick(): Do nothing when not placed Petr Baudis 2011-11-27 04:42:52 +01:00
  • a2a52f5884 World: Multiply all constants by ten for higher granularity Petr Baudis 2011-11-27 04:41:41 +01:00
  • 812e0da79b agent::spawn(): Introduce Petr Baudis 2011-11-27 04:30:18 +01:00
  • 7714906baa agent::spawn_at(): Disassociate from constructor, allow tile == NULL Petr Baudis 2011-11-27 04:28:16 +01:00
  • 3e5366a5c4 README: Document attack_dir Petr Baudis 2011-11-27 04:17:29 +01:00
  • ed2c1ee11b move_cost: Scale down from -10 to -5 Petr Baudis 2011-11-27 04:17:04 +01:00
  • 9bf8281b91 dead_body_energy: Scale down from 500 to 200 Petr Baudis 2011-11-27 04:16:32 +01:00
  • 14015e3bfc tile::symbol(): Return 'a' on dead agents Petr Baudis 2011-11-27 04:16:07 +01:00