import random # -------------------------------------------------------------- def generate_word(): candidates = ["pikachu", "eevee", "charmander", "bulbasaur", "rattata"] return random.choice(candidates) # -------------------------------------------------------------- def main(): print("Welcome to the CSCI 107 word challenge!") print("Try to guess the secret word with 6 or fewer errors.") print("Good luck!") print("----------------------------------------------------") errors_allowed = 6 play_game(generate_word(), errors_allowed) # -------------------------------------------------------------- main()