Esempio n. 1
0
    def playPerson(self, rival):
        uno = QTVarios.blancasNegrasTiempo(self.pantalla)
        if not uno:
            return
        siBlancas, siTiempo, minutos, segundos, fastmoves = uno
        if siBlancas is None:
            return

        dic = {}
        dic["SIBLANCAS"] = siBlancas
        dic["RIVAL"] = rival

        dic["SITIEMPO"] = siTiempo and minutos > 0
        dic["MINUTOS"] = minutos
        dic["SEGUNDOS"] = segundos

        dic["FASTMOVES"] = fastmoves

        self.gestor = GestorPerson.GestorPerson(self)
        self.gestor.inicio(dic)
Esempio n. 2
0
    def playPerson(self, rival):
        uno = QTVarios.blancasNegrasTiempo(self.main_window)
        if not uno:
            return
        is_white, siTiempo, minutos, segundos, fastmoves = uno
        if is_white is None:
            return

        dic = {}
        dic["ISWHITE"] = is_white
        dic["RIVAL"] = rival

        dic["SITIEMPO"] = siTiempo and minutos > 0
        dic["MINUTOS"] = minutos
        dic["SEGUNDOS"] = segundos

        dic["FASTMOVES"] = fastmoves

        self.gestor = GestorPerson.GestorPerson(self)
        self.gestor.inicio(dic)
Esempio n. 3
0
 def playPersonAplazada(self, aplazamiento):
     self.gestor = GestorPerson.GestorPerson(self)
     self.gestor.inicio(None, aplazamiento=aplazamiento)