ive been working on this tic tac toe game for one of my worksheets in university and im stuck. the game allows you to enter Row and Col, and if that position contains a "*" it will replace it with the symbol of whos turn it is. for some reason the highest value you can enter is
Row 2
Col 3
after that, nothing happens.
Hence when you use col = 3, that is accessing or changing some memory outside the array, which will if you are lucky cause the program to crash. (if you are unlucky, the incorrect code will run with no visible damage, but may cause unexpected failure at some later point).
edit:
in your code, you use both [row] and [row-1] (same with col). Which do you think is correct?
but i dont understand why its not working since when the user inputs the data i have set the code to chose that number -1 so if the choose Row 3, Col 2 it then converts it to Row 3 - 1 and Col 2 - 1 the user should technically be allowed to go up to Row 3 Col 3 which would convert to Board [2][2]