diff options
-rw-r--r-- | 4.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,8 +26,8 @@ class Board: def call(self, num: int) -> None: if num not in self.nums: return pos: int = self.cells.index(num) - self.col_hits[pos // self.width] += 1 - self.row_hits[pos // self.height] += 1 + self.col_hits[pos % self.width] += 1 + self.row_hits[pos // self.width] += 1 self.unmarked_sum -= num self.has_bingo = ( any(hits == self.height for hits in self.col_hits) or |