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)
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]