def grid_doble_click(self, grid, fila, oColumna): game = self.partidaActual() if game: self.procesador.cambiaXAnalyzer() xanalyzer = self.procesador.xanalyzer move = game.move(-1) fenm2 = move.position_before.fenm2() dic = self.dbop.getfenvalue(fenm2) if "ANALISIS" in dic: mrm = dic["ANALISIS"] move.analysis = mrm, 0 else: me = QTUtil2.mensEspera.inicio(self, _("Analyzing the move...."), position="ad") move.analysis = xanalyzer.analizaJugadaPartida( game, len(game) - 1, xanalyzer.motorTiempoJugada, xanalyzer.motorProfundidad ) me.final() Analisis.show_analysis( self.procesador, xanalyzer, move, self.pboard.tablero.is_white_bottom, 9999, len(game) - 1, main_window=self, ) dic = self.dbop.getfenvalue(fenm2) dic["ANALISIS"] = move.analysis[0] self.dbop.setfenvalue(fenm2, dic)
def analizar(self, position): move = self.liAnalisis[position] is_white = move.position_before.is_white Analisis.show_analysis( self.procesador, self.xtutor, move, is_white, 9999999, 1, main_window=self, must_save=False )
def analizar(self): xtutor = self.procesador.XTutor() Analisis.show_analysis(self.procesador, xtutor, self.move, self.position.is_white, 9999999, 1, main_window=self, must_save=False)
def analizaPosicion(self, fila, key): if fila < 0: return move, is_white, siUltimo, tam_lj, pos = self.dameJugadaEn(fila, key) if not move: return max_recursion = 9999 if not (hasattr(move, "analisis") and move.analysis): me = QTUtil2.mensEspera.inicio(self.main_window, _("Analyzing the move...."), position="ad") mrm, pos = self.xanalyzer.analyse_move( move, self.xanalyzer.motorTiempoJugada, self.xanalyzer.motorProfundidad) move.analysis = mrm, pos me.final() Analisis.show_analysis(self.procesador, self.xanalyzer, move, self.tablero.is_white_bottom, max_recursion, pos) self.put_view()