Exemple #1
0
    def HighlightBoxTriples(self):
        """ Highlight where there are box triple candidates """
        self.ClearHighlights()
        trips, rCands = sd.BoxTriples(self.currBoard, self.candBoard)

        for trip in trips:
            print(trip)
            a, b, c, (i1, j1), (i2, j2), (i3, j3) = trip
            self.cells[i1][j1].HiliteCandidates(
                set([a, b, c]) & self.candBoard[i1][j1])
            self.cells[i2][j2].HiliteCandidates(
                set([a, b, c]) & self.candBoard[i2][j2])
            self.cells[i3][j3].HiliteCandidates(
                set([a, b, c]) & self.candBoard[i3][j3])

        self.HighlightRemovals(rCands)