elif home.getTrial() == 2: string = "" riddle = Riddle() if riddle.getHammer() == 0: string = "Oh no! You did not attain War Hammer.\nYou can continue to your next trial, but you might want to try again.\nYou may need it later!" elif riddle.getHammer() == 1: player.setHammer() string = "Congratulations! You have attained War Hammer!\nYou may choose your next trial.\nIf you have completed all the trials, you are ready to face the dragon!" home = Home(string) elif home.getTrial() == 3: string = "" card = CardChallenge() if card.getLuckStatus() == 0: string = "Oh no! You did not attain Gambler's Luck.\nYou can continue to your next trial, but you might want to try again.\nYou may need it later!" elif card.getLuckStatus() == 1: player.setLuck() string = "Congratulations! You have attained Gambler's Luck!\nYou may choose your next trial.\nIf you have completed all the trials, you are ready to face the dragon!" home = Home(string) elif home.getTrial() == 4: string = "" arena = Arena(player, dragon) if arena.getWinner() == 0: string = "Only a coward flees from battle!" break elif arena.getWinner() == 1: string = "You have slain the dragon! We are forever in your debt." break elif arena.getWinner() == 2: string = "Uh oh. Looks like you died. Well, better luck in the afterlife" break