from game import * def main(): world = World( [[1,1,1,1,1,1], [1,0,0,1,0,1], [1,0,0,1,0,1], [1,0,0,0,0,1], [1,1,1,1,1,1]], [' ','#']) hero = GameObject(Vector2(1,1),"@") home = GameObject(Vector2(4,1),"^") destination = Game(world,hero,home).run() if destination: print("Vitej doma!") else: print("... a uz ho nikdy nikdo nevidel... ") if __name__ == "__main__": main()