def saveGame(self, game, position=None): if not game.isChanged(): return if game.uri and isWriteable(game.uri): self.saveGameSimple(game.uri, game, position=position) else: return self.saveGameAs(game, position=position)
def saveGame(game): if not game.isChanged(): return if game.uri and isWriteable(game.uri): saveGameSimple(game.uri, game) else: return saveGameAs(game)
def saveGame (game): if not game.isChanged(): return if game.uri and isWriteable (game.uri): saveGameSimple (game.uri, game) else: return saveGameAs (game)
def isChanged(self): if self.ply == 0: return False if self.needsSave: return True if not self.uri or not isWriteable(self.uri): return True return False