Print some stuff after setting a value

This commit is contained in:
Eryn Wells 2017-10-11 19:46:16 -07:00
parent d25a320c30
commit 387ccacb8d

View file

@ -157,6 +157,7 @@ class Sudoku:
raise ValueExistsInPeers('{} already exists in the peer set for ({},{})'.format(value, x, y))
self._board[idx] = value
print('({},{}) <- {} (p:{}) {!r}'.format(x, y, value, peers, self))
def _xy_to_idx(self, x, y):
return y * self.row_size + x