Logo Search packages:      
Sourcecode: uligo version File versions  Download package

def uligo::App::undo2 (   self  ) 

Undo in normal move; undo the last two moves (resp. the last move,
    if it wasn't answered). 

Definition at line 628 of file uligo.py.

00628                    :
        """ Undo in normal move; undo the last two moves (resp. the last move,
            if it wasn't answered). """

        try:
        
            if self.noMovesMade > 0:
                self.creditAvailable = 0
                self.statusbar.set('empty')
                if self.cursor.atEnd:
                    self.showSolutionButton.config(state=NORMAL)
                    self.board.state('normal', self.nextMove)

                if (self.board.currentColor == self.inputColor):
                    self.board.undo(2)
                    self.cursor.previous()
                    self.cursor.previous()
                    self.noMovesMade = self.noMovesMade - 2
                else:
                    self.board.undo()
                    self.cursor.previous()
                    self.noMovesMade = self.noMovesMade - 1

        except SGFError:
            showwarning('SGF Error', 'Error in SGF file!')
        

    def undoTryVar(self):


Generated by  Doxygen 1.6.0   Back to index