| @@ -1,5 +1,6 @@ | |||||
| import random | import random | ||||
| def read_words(): | def read_words(): | ||||
| stream = open("noms.txt") | stream = open("noms.txt") | ||||
| words = stream.read().splitlines() | words = stream.read().splitlines() | ||||
| @@ -29,8 +30,6 @@ def display_hint(word, letters): | |||||
| print("") | print("") | ||||
| def main(): | def main(): | ||||
| words = read_words() | words = read_words() | ||||
| word = choose_word(words) | word = choose_word(words) | ||||
| @@ -47,4 +46,5 @@ def main(): | |||||
| print("Gagné") | print("Gagné") | ||||
| return | return | ||||
| main() | main() | ||||