예제 #1
0
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()
예제 #3
0
from phrasehunter.game import Game

if __name__ == '__main__':
    try:
        phrasehunter = Game()
        phrasehunter.start()

    except Exception as e:
        raise e
예제 #4
0
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.
예제 #5
0
def main():
    my_game = Game()
    my_game.start()
예제 #6
0
from phrasehunter.game import Game

if __name__ == "__main__":
    on_going_game = Game()
    on_going_game.start()