new ui elements for timing
This commit is contained in:
12
crops.py
12
crops.py
@@ -203,9 +203,9 @@ class Crops(GameBase):
|
||||
for y in range(0, 14, 1):
|
||||
self.data_score_map[x, y] = self.score_for_attached_same_color_all_directions(state, x, y)
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
|
||||
full_moves = []
|
||||
reserve_moves = []
|
||||
@@ -223,18 +223,18 @@ class Crops(GameBase):
|
||||
if len(path_option) >= 5:
|
||||
full_moves.append((state[x, y], path_option))
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
if self.data_score_map[x, y] >= 1:
|
||||
path_option = [[x, y]]
|
||||
self.find_next_same_color_all_directions_recursion2(state, x, y, path_option)
|
||||
if len(path_option) >= 3:
|
||||
reserve_moves.append((state[x, y], path_option))
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':
|
||||
break
|
||||
return
|
||||
# print(self.data_score_map)
|
||||
|
||||
# screenshot = cv.imread("screenshot_scored.jpg")
|
||||
|
||||
Reference in New Issue
Block a user