1. 19 Mar, 2013 1 commit
    • Sam Moore's avatar
      Add screen blackout to qchess · c0c346f9
      Sam Moore authored
      Just because it bugged [BOB] that the screen never went to sleep when using qchess_login.sh
      Aren't I nice?
      c0c346f9
  2. 28 Feb, 2013 1 commit
    • Sam Moore's avatar
      Stuff happened · 15970878
      Sam Moore authored
      - Fixed C++ agent (yay)
      - Added Java agent (ew)
      - Renamed some things (why?)
      15970878
  3. 30 Jan, 2013 1 commit
    • Sam Moore's avatar
      Added sample agent + log file writing/parsing · a35e4dc5
      Sam Moore authored
      I figured no one wants to sift through the qchess internal agent stuff,
      So I wrote a python external agent agents/sample.py
      
      I ended up implementing the cool idea about log files.
      You can replay a log file up to an arbitrary point, and then continue play.
      
      I also fixed a bug with external agents calling run_agent.
      Removed the reading of the colour line from there, since the external agent should do it.
      Added reading of the colour line to the ExternalWrapper class, to avoid breaking that.
      
      Added --reveal so that all states can be seen in the GUI (but they are not communicated to Agents).
      
      Added handling of SIGINT to main.py
      
      Probably did something else I forgot.
      
      qchess will probably be ready soon (famous last words), I should start on a scoring/entry system...
      And a webpage.
      a35e4dc5
  4. 29 Jan, 2013 1 commit
    • Sam Moore's avatar
      Progress? · 877034f0
      Sam Moore authored
      - Fixed .dll files that were the wrong ones for cx_freeze win32
      - Created "internal" agents, and made AgentBishop one of them
      - Implemented terrible wrapper class that runs an internal agent in a seperate python process
        - This is for when timeouts are used
        - select == better than threads
        - TimeoutPlayer appears to not work properly anyway
      - Tested win32 version (script and frozen binary)
        - ExternalAgent seems to break
        - TimeoutPlayer seems to break (even more than normal)
        - Pretty much everything breaks actually
          - More things seem to break with the frozen binary than with the script
          - Amazingly the pygame interface doesn't break, just the fancy threading/subprocess/socket/file related stuff
        - Somehow, the InternalAgents, ie: AgentBishop were working
        - So windows users can play the python sample agents, but otherwise the program is pretty useless
      
      - Implemented the --log and --file arguments
        - Get an error if the game hasn't actually finished when using --file, should probably fix
          - It might be cool to let people use --file for a set number of moves, and then continue play from that position
            - Would need more work...
      
      - When graphics are disabled, the game still works
        - But I need to test it on a server that doesn't have pygame at all
      
      TODO: Finish the qchess program and actually work on setting up the competition.
      877034f0
  5. 24 Jan, 2013 1 commit
    • Sam Moore's avatar
      Lots of stuff happened · 707e794d
      Sam Moore authored
      1. Argument parsing. We have it
      
      2. GUI. We have it
      
      3. Networking. We have it.
      
      4. Timeouts. We have those. Sort of. Not for Windows.
      
      5. Help page. We have that too.
      	I think you'll find it quite... helpful
      
      We still don't have log files. Most of previous TODOs still apply.
      707e794d