
previous

page 5
next

It will be easier to work with rows & columns but we will need a function to work out the id given the row and column. It will only be a one line function.
There will be other simple functions like that so I propose keeping them in a single file called functions.js.
functions.js
function rc2id(row,col) {
return 10 * row + col;
}
return 10 * row + col;
}
previous
next