Skip to content
Snippets Groups Projects
  1. Dec 13, 2011
  2. Dec 12, 2011
    • Samuel Moore's avatar
      Improved simulate.py · 6515461b
      Samuel Moore authored
      I want to generate semi-useful results .html pages using simulate.py
      It doesn't do this yet, but now it stores all the information I might need in a dictionary.
      The dictionary for each agent replaces the array which I was previously using.
      
      I also made some more of the global variables into optional arguments with default values.
      6515461b
  3. Dec 11, 2011
    • Sam Moore's avatar
      Fixed bugs, minor changes · baf69b8d
      Sam Moore authored
      Fixed segfault in manager caused by attempt to print invalid setups to log
      Fixed SIGPIPE in manager caused by attempt to message non-existant programs.
      
      Although I previously fixed a similar SIGPIPE, It is also possible for a file to exist but not have executable permissions set.
      Controllers set to use such files as executables were returning true for Valid(), but were in fact, not valid at all.
      
      Use the access function (thanks stack overflow!) to check for executable permissions
      and existence in Program::Program. If they aren't set, or file doesn't exist, set
      pid to -1 which is an "invalid" controller.
      
      Discovered python trick which allows me to get rid of stupid "run.py" files for the python AIs.
      
      Modified the simulate script to take the number of rounds as an argument.
      Also made its output slightly prettier.
      
      Currently testing simulation of 10 rounds on my laptop at home.
      
      "./simulate 10; shutdown -h -P now"
      
      I hope it doesn't set the desk on fire while I'm asleep... :S
      
      Oh, a...
      baf69b8d
  4. Dec 08, 2011
    • Sam Moore's avatar
      The /home was not necessary · 88fc5a96
      Sam Moore authored
      Derp
      88fc5a96
    • Sam Moore's avatar
      Changed the directory structure. · e3b15cd5
      Sam Moore authored
      e3b15cd5
    • Sam Moore's avatar
      Modified manager program, updated website · 17a20de4
      Sam Moore authored
      Major changes: Added simple GUI for human players
      Setup phase doesn't use GUI yet (uses a default if -g enabled).
      Click in the general region of where you want to select/move pieces.
      
      Modified Board::Draw to allow for showing of already revealed pieces,
      but not all pieces. Used to make human player GUI nicer (hides AI pieces).
      
      Modified -t switch to allow for "infinite" stall_time
      (wait for user to press enter)
      
      Changed website. Removed protocol description and linked to manual.txt.
      Added screenshot to make things slightly more exciting.
      Updated manual.txt
      
      Minor changes to simulate.py (output)
      
      TODO:
      Fix segmentation fault found in manager program
      It occurs just before exit. Memory error in the cleanup process?
      ANNOYING!
      
      Still have to bring myself to take the time to finish setting up that vm...
      Need to talk to a non-hostile wheel member about security. I don't want my vm to take out our network or something.
      
      Preferably I don't even want the vm to be compromised, regardless of the rest of ucc.
      So much I don't know about servers/linux...
      
      Need to stop staying up past midnight...
      17a20de4
  5. Dec 07, 2011
  6. Dec 06, 2011
    • Sam Moore's avatar
      Wrote python script to simulate a round · fe470c01
      Sam Moore authored
      simulate.py identifies agents, pits them against each other, and keeps track of scores using files.
      
      Needs the "info" files in AI directories to determine what file to execute.
      
      Spent a lot of time learning/failing at setting up vm on clownfish, called mufasa.
      Will finish setting up vm later.
      fe470c01