update menti
This commit is contained in:
@@ -88,7 +88,7 @@ class MentiWords(GameBase):
|
||||
|
||||
with open("menti_dic") as file:
|
||||
self.word_list = [line.rstrip() for line in file]
|
||||
self.word_list2 = words.words()
|
||||
#self.word_list2 = words.words()
|
||||
|
||||
def reset_lists(self):
|
||||
self.current_letters = []
|
||||
@@ -143,7 +143,7 @@ class MentiWords(GameBase):
|
||||
continue
|
||||
points = self.vision_stun.get_click_points(rectangles)
|
||||
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 = utils.scale_screenshot(cropped1)
|
||||
@@ -162,7 +162,7 @@ class MentiWords(GameBase):
|
||||
def possible_words(self, lwords, charSet):
|
||||
lst = []
|
||||
for word in lwords:
|
||||
if len(word) <= 2:
|
||||
if len(word) <= 1:
|
||||
continue
|
||||
flag = 1
|
||||
chars = self.charCount(word)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Reference in New Issue
Block a user