1. 30 Jan, 2013 1 commit
    • judge's avatar
      [FINAL RESULTS] · 3607a8e3
      judge authored
      Not that anyone cares, but I thought I should probably actually commit these.
      Congratulations Peter N Lewis
      See the mailing list archives for more information.
  2. 05 May, 2012 4 commits
  3. 28 Apr, 2012 9 commits
  4. 09 Apr, 2012 2 commits
  5. 17 Mar, 2012 6 commits
  6. 16 Mar, 2012 3 commits
    • Sam Moore's avatar
      s/eraseAt/remove/ · 6a473ff2
      Sam Moore authored
    • Sam Moore's avatar
      Fixed bug in Java AI · 35eb2149
      Sam Moore authored
      In KillUnit:
      I was using Vector.remove(Object), but I realised that this doesn't compare
      references, instead it uses "compareTo". Which meant the AI deleted every unit
      as soon as the first one died. Fun.
      I discovered gcj, which lets you compile a Java program.
      This is much easier than trying to convince the java interpreter to run.
    • Sam Moore's avatar
      Fixed error in Java AI · a46f782e
      Sam Moore authored
      I was using Vector.remove(Object), but I realised that this doesn't compare
      references, it calls the "compareTo" method.
      See KillUnit
      Java AI is still using Buffered IO and so hasn't been tested with the manager
      program yet.
  7. 15 Mar, 2012 1 commit
    • Sam Moore's avatar
      Added Java sample AI · 8827bb58
      Sam Moore authored
      Just makes random moves
      Can't work out how to unbuffer stdio yet.
      The java interpreter doesn't like absolute path names, which is annoying.
  8. 04 Mar, 2012 2 commits
    • Sam Moore's avatar
      Add .plt templates for gnuplot · 11dd176b
      Sam Moore authored
    • Sam Moore's avatar
      Added image output to manager, added plots to results pages · 5f9adddd
      Sam Moore authored
      Can generate images from manager program with the -I option
      Can generate a video from these images with the -v option (Note: just runs ffmpeg)
      These two options only work if the program was built with graphics enabled.
      Note: You can generate a video from a saved log file by "./stratego -v video -o logfile"
      So that's cool.
      Results pages look nicer. Fixed bug with score updating between rounds.
      Added pretty plots. Most plots end up being straight lines. But its pretty anyway.
  9. 03 Mar, 2012 1 commit
    • Sam Moore's avatar
      Tweaking manager/simulate.py, updating manual and webpage · 476617a8
      Sam Moore authored
      You can now pass arguments to your AI through the manager program.
      Simply include the path to the AI and arguments in quotation marks.
      ./stratego "../../agents/foo/bar --debug" ../../agents/other/agent
      simulate.py was making broken links to log files, fixed.
      Logging of stderr! If anything is printed to stderr, it is all saved in logfilename.stderr by simulate.py
      Tried to make the manual page better, probably failed.
      Updated webpage since we have now changed the date.
      Also tried to fix vixen again, haven't tested.
  10. 02 Mar, 2012 3 commits
    • Sam Moore's avatar
      Fixed bug in simulate.py + hacky fix for bug in vixen · 9e4bc3c0
      Sam Moore authored
      simulate.py wasn't setting the "gameID" variable correctly,
      meaning all games were logged to "red.vs.blue.1.1"
      Bug in vixen found by [SLX]; it attempts to move outside the board.
      Usually when losing.
      Path finding algorithm (path.py) shouldn't move outside the board.
      But somehow it is.
      Hacky fix at the moment by checking for moves outside the board in
      vixen's score calculation, and allocating -100 to these moves.
    • Sam Moore's avatar
      Made printed board consistent with graphical board · e73b3387
      Sam Moore authored
      I made the graphical board draw function reveal pieces that had been involved in combat.
      But I didn't reflect this in the printed board, until now.
      Pointed out by [SLX]
    • Sam Moore's avatar
      Fixed bug with log files · c4988773
      Sam Moore authored
      I had added some extra log messages for testing the networking functions,
      and forgot to remove them, hence replaying a logged file (with the -f option)
      was failing.
  11. 26 Feb, 2012 1 commit
    • Sam Moore's avatar
      [PATCH] Allow Human_Controller to move scouts further · 168375bf
      Sam Moore authored
      Thanks to David Gow (sulix) for this patch.
      I was aware of the limitation, but decided to wait until someone complained before fixing it (I also overestimated the effort required to fix it).
      So I'd like to congratulate David for being the first person to actually try and use the manager program!
      I'll have to allocate a prize for that.
  12. 02 Feb, 2012 4 commits
  13. 21 Jan, 2012 1 commit
    • Sam Moore's avatar
      Worked out networking · 341297b4
      Sam Moore authored
      Wasn't thinking straight with the initial approach
       - Each stratego program is running ONE AI program locally
      	-> That AI's responses need to be sent accross the network to the other stratego program
      	-> Each stratego program keeps state seperately and sends instructions to its local AI, so actual instructions (ie: "Its your turn") aren't sent
       - A special controller is needed to recieve the responses
      So we have NetworkSender, which wraps around an AI_Controller and simply sends its responses (exactly as they are) to the network
      and NetworkReceiver which waits for responses from the network.
      As far as networking itself is concerned, its not that important who is the Client and who is the Server.
      If an IP address is specified, then Client is used, if no IP address is specified, Server is used.
      NOTE: It isn't possible to use networking for both AI programs yet.
      	(ie: stratego @network @network) will fail when the Blue server attempts to bind the socket already used by the Red server.
      	I may consider fixing this at some point.
      Going to test on mufasa.
      I've just thought, if the stratego programs have different timeout sequences, there may be problems.
      Oh well.
  14. 19 Jan, 2012 2 commits