Exemplo n.º 1
0
from utils.game import Hangman


if __name__ == "__main__":
    game = Hangman()
    game.start_game()
Exemplo n.º 2
0
from utils.game import Hangman

my_game = Hangman()
my_game.start_game()
Exemplo n.º 3
0
from utils.game import Hangman

game1 = Hangman()
game1.start_game()
Exemplo n.º 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()

Exemplo n.º 5
0
#----- 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()'''
Exemplo n.º 6
0
def main():
    game = Hangman()
    game.start_game()