modify wordsearch display & attributes, modify sudoku diff

This commit is contained in:
samerbam 2023-08-23 13:16:45 -04:00
parent bcacc3f4e4
commit 3f89e6fc85
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -154,7 +154,7 @@ class ThermalPrinter():
def print_wordsearch(self): def print_wordsearch(self):
# words = ("gugu,gaga") # words = ("gugu,gaga")
r = RandomWord() 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) w = WordSearch(','.join(words), 16, 16)
self.p.set(align="left") self.p.set(align="left")