Skip to content

Commit

Permalink
Merge pull request #56 from NET-BYU/dev_fix
Browse files Browse the repository at this point in the history
Fixing hangman_ai, changing is_not to != to remove warning
  • Loading branch information
philipbl authored Aug 19, 2024
2 parents 5a66270 + f41c2eb commit f0d6855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/hangman_ai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ def pick_choice(num_guessed):
self.win = True
trace.draw_endgame(True)
x = 0
while x is not 15:
while x != 15:
x += 1
yield
yield

x = 0
while x is not 25:
while x != 25:
x += 1
yield
# Erase the hangman, the guessed letters, and the word from the screen
Expand Down

0 comments on commit f0d6855

Please sign in to comment.