from phrasehunter.game import Game from phrasehunter.phrase import Phrase if __name__ == "__main__": game = Game() game.start() phrase = Phrase(game.phrases)
""" Python Web Development Techdegree Project 3 - Phrase Hunter Game Author: Trey Annis Goal: Meet All 'Exceeds Expectations' Requirements -------------------------------- """ from phrasehunter.game import Game if __name__ == "__main__": while True: new_game = Game() new_game.start() if new_game.start() == 'Y': new_game = Game() new_game.start() else: exit()
from phrasehunter.game import Game if __name__ == '__main__': try: phrasehunter = Game() phrasehunter.start() except Exception as e: raise e
from phrasehunter.phrase import Phrase from phrasehunter.game import Game if __name__ == '__main__': game = Game() #Create an instance of Game Class called 'game'. game.start() #Execute the 'start()' method within Game class.
def main(): my_game = Game() my_game.start()
from phrasehunter.game import Game if __name__ == "__main__": on_going_game = Game() on_going_game.start()