Are you asking how to map numbers 1-9 to row and column? Something like the following
subtract 1 and
% by number of columns to get column
/ by number of rows to get row
Yes, exactly! An output that would like this:
Game board:
[1][2][3]
[4][5][6]
[7][8][9]
and when player or computer plays, it appears like this:
Game board:
[X][2][3]
[X][O][6]
[O][8][X]
Does this involve a lot of modifications to the current code?