def loadSave(): clear() print("\n Save detected. Load previous game? ", end="") y = yesNo() if y: board.populate() utils.readSave() else: # board.populate() startScreen()
def choices(choice): if choice.upper() == "Q": quit() elif choice.upper() == "R": board.populate() clear() print("\n The board has been reset.") pressEnter() elif choice.upper() == "L": utils.readSave() clear() print("\n The last save has been loaded.") pressEnter()
def choices(choice): if choice.upper() == "Q": quit() return True elif choice.upper() == "R": board.populate() clear() print("\n The board has been reset.") pressEnter() return True elif choice.upper() == "L": utils.readSave() clear() print("\n The last save has been loaded.") pressEnter() return True elif choice.upper() == "S": simulateMenu() return True else: return False