""" planning_STOP.py Planning the STOP game. --------------------------- game : pick secret word loop until game is done : display current game get guess from user ------------------------------- secret_length = 7 max_wrong = 10 def play_game(): guesses = [] # e.g. ['a', 'h'] secret = random_word(secret_length) # e.g. "catcatz" while not game_finished(guesses, secret): display_game(guesses, secret) letter = get_letter(guesses) guesses.append(letter) def game_finished(guesses, secret): "return True if the game is over" find number of incorrect guesses game over if incorrect > max_wrong """