enemy.analyze() texty.showPlayer("Do you wish to fight this enemy?") read = texty.readOneKeyFromPlayer() read = read.lower() if read == "y": texty.showPlayer("You approach the enemy and fight!") return enemy else: texty.showPlayer("You bravely flee from your foe!") # MAIN texty = Texty() texty.setUp("network") texty.getPlayerConnection() texty.showPlayer("Hello, and welcome to the Enrichment Center. The Device Has Been Modified.") playGame = True gameOverFlag = False cf = CommandFactory() savvy = Savvy() flagLoadedMidfight = False if savvy.isMidFight(): texty.showPlayer("Do you want to resume the fight?") read = texty.readOneKeyFromPlayer() if read == "y": cf.load() flagLoadedMidfight = True if not flagLoadedMidfight: texty.showPlayer("Do you want to load a game?")