akaIDIOT/LoBotomy — pull request #14 by Sakartu (2012-12-15 19:24:30+00:00)
Title: Add debug mode

This refactors a bit of stuff to enable debug_mode.

It adds a commandline parser and commandline option to enable debug mode. In debug mode, the game stops right before executing the actions in a turn and gives the user the possibility to start a python debugger to inspect local variables and the like.

Besides this it adds some small fixes, including setting the listening socket to SO_REUSEADDR, which helps resolve 'address already in use' problems.