Exemplo n.º 1
0
    def HighlightNakedPairs(self):
        """ Highlight where there are naked pair candidates """
        self.ClearHighlights()
        pairSets, rCands = sd.NakedPairs(self.currBoard, self.candBoard)

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

        self.HighlightRemovals(rCands)