Exemple #1
0
    def HighlightPointingPairs(self):
        """ Highlight where there are pointing pair candidates """
        self.ClearHighlights()

        pairSets, rCands = sd.PointingPairs(self.currBoard, self.candBoard)

        for pairSet in pairSets:
            n, i1, j1, i2, j2 = pairSet
            self.cells[i1][j1].HiliteCandidates(set([n]))
            self.cells[i2][j2].HiliteCandidates(set([n]))

        self.HighlightRemovals(rCands)