Oops broke the tests

This commit is contained in:
Eryn Wells 2017-10-11 15:59:14 -07:00
parent c0021ac2c2
commit ed41930092

View file

@ -100,7 +100,7 @@ class Sudoku:
''' '''
Return a set of the peers, indexes into the board, for a given square. Return a set of the peers, indexes into the board, for a given square.
''' '''
box = int(x / sz), int(y / sz) box = int(x / self.size), int(y / self.size)
return set(self._row(y)) | set(self._column(x)) | set(self._box(*box)) return set(self._row(y)) | set(self._column(x)) | set(self._box(*box))
def _row(self, r): def _row(self, r):