Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Game extends Compoent {
...
eraseSelected = () => {
const selectedCell = this.getSelectedCell();
if (!selectedCell) return;
this.fillNumber(false);
}
fillSelectedWithSolution = () => {
const { board, solution } = this.state;
const selectedCell = this.getSelectedCell();
if (!selectedCell) return;
const { x, y } = board.get('selected');
this.fillNumber(solution[x][y]);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.