示例#1
0
def loadSave():
    clear()
    print("\n Save detected. Load previous game? ", end="")
    y = yesNo()
    if y:
        board.populate()
        utils.readSave()
    else:
        # board.populate()
        startScreen()
示例#2
0
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()
示例#3
0
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