This: -refactor few lines to disable Astar related functions and behaviour
This commit is contained in:
parent
d0e8a47da1
commit
2b3170d10c
2
App.py
2
App.py
@ -16,7 +16,7 @@ bfs1_flag=False
|
|||||||
bfs2_flag=False #Change this lines to show different bfs implementation
|
bfs2_flag=False #Change this lines to show different bfs implementation
|
||||||
bfs3_flag=False
|
bfs3_flag=False
|
||||||
Astar = False
|
Astar = False
|
||||||
Astar2 = True
|
Astar2 = False
|
||||||
if bfs3_flag or Astar or Astar2:
|
if bfs3_flag or Astar or Astar2:
|
||||||
Pole.stoneFlag = True
|
Pole.stoneFlag = True
|
||||||
|
|
||||||
|
5
Pole.py
5
Pole.py
@ -53,7 +53,10 @@ class Pole:
|
|||||||
time.sleep(3)
|
time.sleep(3)
|
||||||
#self.ui.render_text("Randomizing Crops")
|
#self.ui.render_text("Randomizing Crops")
|
||||||
for coordinates in self.slot_dict:
|
for coordinates in self.slot_dict:
|
||||||
if(coordinates==(0,0) or coordinates in stoneList or coordinates == self.gasStation):
|
if(stoneFlag):
|
||||||
|
if( coordinates in stoneList or coordinates == self.gasStation ):
|
||||||
|
continue
|
||||||
|
if(coordinates==(0,0)):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
self.slot_dict[coordinates].set_random_plant()
|
self.slot_dict[coordinates].set_random_plant()
|
||||||
|
Loading…
Reference in New Issue
Block a user