2020-05-12 20:39:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Data:
|
2020-05-15 13:20:04 +02:00
|
|
|
|
2020-05-12 20:39:36 +02:00
|
|
|
def __init__(self):
|
2020-05-17 15:23:06 +02:00
|
|
|
self.zajeteRegaly = [] #krotka (x,y)
|
|
|
|
self.mapa = []
|
|
|
|
self.unbox = []
|
|
|
|
self.astarMap = []
|
2020-05-18 12:53:51 +02:00
|
|
|
self.geny = []
|
|
|
|
self.kordyWozka = None
|
|
|
|
self.jakLiczycKoszt = None
|
|
|
|
self.best = None
|
|
|
|
self.histZmian = []
|
2020-05-18 18:55:18 +02:00
|
|
|
self.doWykresu = []
|
2020-05-17 15:23:06 +02:00
|
|
|
|
|
|
|
def genMap(self, mapa):
|
|
|
|
tmpMap = mapa.copy()
|
|
|
|
for regal in self.zajeteRegaly:
|
|
|
|
tmpMap[regal[0]][regal[1]] = 2
|
|
|
|
return tmpMap
|