from utils.game import Hangman if __name__ == "__main__": game = Hangman() game.start_game()
from utils.game import Hangman my_game = Hangman() my_game.start_game()
from utils.game import Hangman game1 = Hangman() game1.start_game()
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()
#----- 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()'''
def main(): game = Hangman() game.start_game()