added color switch and reset trigger
This commit is contained in:
@@ -181,14 +181,13 @@ class Field:
|
||||
if self.check_for_button_and_execute(screenshot, self.reset_confirm):
|
||||
cv.waitKey(500)
|
||||
|
||||
if self.colors_at_standard:
|
||||
self.set_color_order((PURPLE, BLUE, RED, YELLOW, GREEN))
|
||||
self.reset_counter = 0
|
||||
self.colors_at_standard = False
|
||||
return
|
||||
else:
|
||||
if not self.colors_at_standard:
|
||||
self.set_color_order((GREEN, YELLOW, RED, BLUE, PURPLE))
|
||||
self.colors_at_standard = True
|
||||
self.reset_counter = 0
|
||||
cv.waitKey(500)
|
||||
|
||||
self.find_patterns_and_valid_moves(new_observation)
|
||||
|
||||
Reference in New Issue
Block a user