예제 #1
0
파일: Canvas.py 프로젝트: bmeares/chess
def quit():
    clear()
    print("\n Would you like to save your game? ", end="")
    y = yesNo()
    clear()
    if y:
        utils.writeSave()
    else:
        utils.delete_save()
    sys.exit(0)
예제 #2
0
파일: main.py 프로젝트: Astrosp/code_y
def main():
    path = pathlib.Path("chess.save")
    if path.exists():
        Canvas.loadSave()
        running = True
    else:
        running = Canvas.startScreen()

    while(running):
        running = state()

    utils.delete_save()