We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc43710 commit 9a35d99Copy full SHA for 9a35d99
internal/layout/number-buttons.go
@@ -115,8 +115,8 @@ func (gameLayout *GameLayout) detectNumberButtonHandler() {
115
// detect range
116
if xPos >= 0 && xPos <= 3*cellSize &&
117
yPos >= 0 && yPos <= 3*cellSize {
118
- row := (yPos / cellSize) % cellSize
119
- col := (xPos / cellSize) % cellSize
+ row := (yPos / cellSize) % game.BoxSize
+ col := (xPos / cellSize) % game.BoxSize
120
gameLayout.handleNumberButtonClick(row, col)
121
}
122
return
0 commit comments