dest='start_delay',
                        type=int,
                        default=0,
                        action='store')
    parser.add_argument('--window-title',
                        help='What to set the window title to',
                        dest='window_title',
                        type=str,
                        default='Robot Simulator',
                        action='store')
    parser.add_argument(
        '--output-prng-state',
        help=
        'Include the starting state of the PRNG in the final output (pickled, encoded as base64)',
        dest='output_prng_state',
        default=False,
        action='store_true')
    parser.add_argument(
        '--prng-start-state',
        help='Base64-encoded pickle of the starting state for the PRNG',
        dest='prng_start_state',
        type=str,
        default=None,
        action='store')
    return parser.parse_args(sys.argv[1:])


if __name__ == '__main__':
    Game = Game(get_cmdline_args())
    Game.GameLoop()
예제 #2
0
from Game import Game

ourgame = Game()

ourgame.GameLoop()

ourgame.EndGame()