Print some stuff after setting a value
This commit is contained in:
parent
d25a320c30
commit
387ccacb8d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue