예제 #1
0
from utils.game import Hangman


if __name__ == "__main__":
    game = Hangman()
    game.start_game()
예제 #2
0
from utils.game import Hangman

my_game = Hangman()
my_game.start_game()
예제 #3
0
from utils.game import Hangman

game1 = Hangman()
game1.start_game()
예제 #4
0
from utils.game import Hangman

# We create first our object Hangman()
hangman = Hangman()

# Print the description of the Object Hangman
# print(help(Hangman))

# Now start the game!
hangman.start_game()

예제 #5
0
파일: main.py 프로젝트: silventesa/hangman
#----- REQUIRED MODULES -----#

# import class containing game
from utils.game import Hangman

# import random word generator
from random_words import RandomWords

#----- GAME START -----#

# 1. Set a unique word (e.g. 'paper') to test the code and have all possible outputs

hangman = Hangman("paper")
hangman.start_game()

# 2. Set a random word (comment 1.)
'''r = RandomWords()
word = r.random_word()


hangman = Hangman(word)
hangman.start_game()'''
예제 #6
0
def main():
    game = Hangman()
    game.start_game()