Пример #1
0
    def possible(self, row, col):
        if (row == col):
            return Stats.possible(self, row, col) & self.diag0

        elif (row + col) == 8:
            return Stats.possible(self, row, col) & self.diag8

        else:
            return Stats.possible(self, row, col)
Пример #2
0
 def possible(self, r, c):
     e = self.board.coordToExtra(r, c)
     if e == None:
         return Stats.possible(self, r, c)
     else:
         return Stats.possible(self, r, c) & self.extra[e]