menti words init

This commit is contained in:
2023-07-26 16:27:23 +02:00
parent 12f86cc7fd
commit 0fcf3d88a2
2 changed files with 4 additions and 1 deletions

BIN
control_elements/play.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View File

@@ -25,7 +25,7 @@ class MentiWords(GameBase):
self.offset_left = 1080
self.offset_down = 870
self.sd_reset_board = cv.imread("control_elements/sodoku_reset_button.jpg", cv.IMREAD_COLOR)
self.menti_play_button = cv.imread("control_elements/play.jpg", cv.IMREAD_COLOR)
self.needles = {'E': cv.imread("menti_words/e.jpg", cv.IMREAD_COLOR),
'H': cv.imread("menti_words/h.jpg", cv.IMREAD_COLOR),
@@ -46,6 +46,9 @@ class MentiWords(GameBase):
self.letter_coords = {}
def assess_playfield_and_make_move(self):
if self.check_for_button_and_execute(self.capture_window.get_screenshot(), self.menti_play_button):
cv.waitKey(2000)
self.reset_lists()
self.get_current_board_state()
if self.overlay.run_mode == 'stopped' or self.overlay.run_mode == 'paused':