AI/genetyczny/Data.py

19 lines
342 B
Python
Raw Normal View History

class Data:
2020-05-15 13:20:04 +02:00
def __init__(self):
self.zajeteRegaly = [] #krotka (x,y)
self.mapa = []
self.unbox = []
self.astarMap = []
2020-05-15 13:20:04 +02:00
def genMap(self, mapa):
tmpMap =[]
tmpMap = mapa.copy()
for regal in self.zajeteRegaly:
tmpMap[regal[0]][regal[1]] = 2
return tmpMap