update menti

This commit is contained in:
2023-08-06 16:21:48 +02:00
parent b1fc655c0b
commit 5005670bd3
2 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ class MentiWords(GameBase):
with open("menti_dic") as file: with open("menti_dic") as file:
self.word_list = [line.rstrip() for line in file] self.word_list = [line.rstrip() for line in file]
self.word_list2 = words.words() #self.word_list2 = words.words()
def reset_lists(self): def reset_lists(self):
self.current_letters = [] self.current_letters = []
@@ -143,7 +143,7 @@ class MentiWords(GameBase):
continue continue
points = self.vision_stun.get_click_points(rectangles) points = self.vision_stun.get_click_points(rectangles)
self.current_letters.append(needle_key) self.current_letters.append(needle_key)
self.letter_coords[needle_key] = points[0] self.letter_coords[needle_key] = (int(points[0][0]/2), int(points[0][1]/2))
''' '''
cropped1 = self.vision_stun.draw_display_picture(screenshot, rectangles, 10) cropped1 = self.vision_stun.draw_display_picture(screenshot, rectangles, 10)
#cropped1 = utils.scale_screenshot(cropped1) #cropped1 = utils.scale_screenshot(cropped1)
@@ -162,7 +162,7 @@ class MentiWords(GameBase):
def possible_words(self, lwords, charSet): def possible_words(self, lwords, charSet):
lst = [] lst = []
for word in lwords: for word in lwords:
if len(word) <= 2: if len(word) <= 1:
continue continue
flag = 1 flag = 1
chars = self.charCount(word) chars = self.charCount(word)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB