def main(): walls = ('-w' in sys.argv or os.environ.get("WALLS",False)) pacman = ('-p' in sys.argv or os.environ.get("PACMAN",False)) top = ('-t' in sys.argv or os.environ.get("TOP",False)) bottom = ('-b' in sys.argv or os.environ.get("BOTTOM",False)) split = Split.FULL if top: split = Split.TOP elif bottom: split = Split.BOTTOM visualizer = Visualizer(ADDRESS, PORT, walls, pacman, split) visualizer.run()
def __init__(self, run_on_clock=True): walls = ('-w' in sys.argv or os.environ.get("WALLS", False)) walls = True pacman = ('-p' in sys.argv or os.environ.get("PACMAN", False)) pacman = True top = ('-t' in sys.argv or os.environ.get("TOP", False)) # top = True bottom = ('-b' in sys.argv or os.environ.get("BOTTOM", False)) # bottom = True split = Split.FULL if top: split = Split.TOP elif bottom: split = Split.BOTTOM self.visualizer = Visualizer(ADDRESS, PORT, walls, pacman, split, run_on_clock=run_on_clock) self.visualizer.run()
def main(): walls = ('-w' in sys.argv or os.environ.get("WALLS", False)) pacman = ('-p' in sys.argv or os.environ.get("PACMAN", False)) visualizer = Visualizer(ADDRESS, PORT, walls, pacman) visualizer.run()