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)
def state(): playing = True while playing: if (globVar.playerCount % 2) == 0: globVar.player = "W" else: globVar.player = "b" Player.turn() globVar.playerCount += 1 # utils.check_king() playing = not utils.checkWin() utils.clearSave() utils.writeSave() return playing