"Runs the game in a test state, allowing to start with a given configuration specified in the AI file" ) parser.add_argument('--seed', dest='seed', help="Starts the game with a given seed", default=None) parser.add_argument('--fps', dest='fps', help="Sets the speed of the game", default=4) args = parser.parse_args() col = Colors() if args.night_mode: col.night_mode() if args.test: args.p2 = "AIs/dummy.py" if (args.seed == None): args.seed = int(1000000000 * time.time()) else: args.seed = int(args.seed) rng = random.Random(args.seed) res = [] seed_list = [] nb_wins = {'p1': 0, 'p2': 0, 'tie': 0}