def main(): agent = QAgent() if len(sys.argv) > 1 and sys.argv[1] == '-t': agent.train() #else: # agent.play(sys.argv[1]) else: runner = StdIOPacmanRunner() games_num = int(input()) for _ in range(games_num): runner.run_game(agent)
#!/usr/bin/env python3 from misio.pacman.agents import RandomAgent from misio.optilio.pacman import StdIOPacmanRunner if __name__ == "__main__": runner = StdIOPacmanRunner() games_num = int(input()) agent = RandomAgent() for _ in range(games_num): runner.run_game(agent)