Skip to content

Commit 85daf0b

Browse files
committed
Fixed partial words working problem
1 parent 75f73b5 commit 85daf0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scrabble.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ def check_word(self):
275275
#Also controls the overlapping of words.
276276
global round_number, players
277277
word_score = 0
278-
dictionary = open("dic.txt").read()
278+
global dictionary
279+
if "dictionary" not in globals():
280+
dictionary = open("dic.txt").read().splitlines()
279281

280282
current_board_ltr = ""
281283
needed_tiles = ""

0 commit comments

Comments
 (0)