+ Gray cells are parity bits. Each row and column should have an even number of black squares. +
+ {flippedCell && ( ++ Flipped bit at position ({flippedCell.row + 1}, {flippedCell.col + 1}) +
+ )} + {errorDetected && ( ++ Error detected at position ({errorDetected.row + 1}, {errorDetected.col + 1})! +
+ )} +How it works: Parity bits ensure even parity in each row/column.
+When a bit flips, the affected row and column will have odd parity, pinpointing the error.
+