modify wordsearch display & attributes, modify sudoku diff

main
samerbam 1 year ago
parent bcacc3f4e4
commit 3f89e6fc85

@ -27,7 +27,8 @@ def generate_sudoku():
squares = side*side
# empties = squares * 3//5
empties = squares * 2//10
# empties = squares * 2//10
empties = squares * 11//20
# empties = squares * diff
# print(squares)
# print(empties)

@ -154,7 +154,7 @@ class ThermalPrinter():
def print_wordsearch(self):
# words = ("gugu,gaga")
r = RandomWord()
words = r.random_words(15, include_parts_of_speech=["nouns", "verbs", "adjectives"], word_max_length=16)
words = r.random_words(5, include_parts_of_speech=["nouns", "verbs", "adjectives"], word_max_length=16)
w = WordSearch(','.join(words), 16, 16)
self.p.set(align="left")

Loading…
Cancel
Save