I have a matrix of 64 squares arranged 8 x 8. The square in the lower left corner is #1 and the square in the upper right corner is #64
How do I calculate the row number when any square is clicked on?
Example, if I click on square 21 how to calculate that it is in row 3
How do I calculate the row number when any square is clicked on?
Example, if I click on square 21 how to calculate that it is in row 3