News for hackers. Stuff that matters.
Re:Show HN: Game where you write Python robots to fight othe... by Xephyrous on Friday November 01, 2013 @11:37PM (#6658044)
Looks fun, can't wait to get started. In your instructions, you said to run the program, call:

    python kit/run.py yourcode.py yourothercode.py --render
If you try to run run.py from outside of its directory, it can't import settings.py

    Traceback (most recent call last):
      File "kit/run.py", line 1, in <module>
        import game
      File "/home/<name>/robotgame/kit/game.py", line 30, in <module>
        settings = SettingsDict('settings.py').d
      File "/home/<name>/robotgame/kit/game.py", line 28, in __init__
        self.d = AttrDict(ast.literal_eval(open('settings.py').read()))
    IOError: [Errno 2] No such file or directory: 'settings.py'
Re:Show HN: Game where you write Python robots to fight othe... by _xhok on Saturday November 02, 2013 @01:46AM (#6658309)
Thanks for the tip. I updated the instructions.