small changes
This commit is contained in:
parent
b1ca5ed09b
commit
ae8fe829d7
|
@ -52,4 +52,4 @@ class HintGiver:
|
|||
def log_to_file(self, filename):
|
||||
"""Write taken hints to a file."""
|
||||
with open(filename, 'a') as f:
|
||||
yaml.dump(self, f)
|
||||
yaml.dump(self.hints_taken, f)
|
|
@ -100,7 +100,7 @@ def give_hint(game, hint_giver):
|
|||
print("Hints taken in current level:")
|
||||
for hint in hint_giver.show_taken_hints("level" + str(game.level), game.branch):
|
||||
print("{}: {}".format(hint, hint_giver.take_hint("level" + str(game.level), game.branch, hint)))
|
||||
print("Choose which hint to take:")
|
||||
print("Choose which hint to take (Write a number):")
|
||||
print("0: (cancel, take no hint)")
|
||||
i = 1
|
||||
possible_hints = hint_giver.show_possible_hints("level" + str(game.level), game.branch)
|
||||
|
|
Reference in New Issue