in pachi_py/cypachi.pyx [0:0]
def __richcmp__(PyPachiBoard self, PyPachiBoard other, int op):
# TODO: use the C++ operator==
if op != 2 and op != 3: return NotImplemented
if other._size != self._size: return False
cdef int i, j
for i in range(self._size):
for j in range(self._size):
if board_atij(self._b.pachiboard(), i, j) != board_atij(other._b.pachiboard(), i, j):
return op == 3
return op == 2