My assignment is to write a source for the game tic-tac-toe.
it goes something like this
Board layout:
1 2 3
4 5 6
7 8 9
X's move?
So when the user keys in a number from 1-9, the number on the board is replaced with an X, then it's O's turn.
I want to ask, how do I replace the numbers key'd in by the player with an X/O?
it goes something like this
Board layout:
1 2 3
4 5 6
7 8 9
X's move?
So when the user keys in a number from 1-9, the number on the board is replaced with an X, then it's O's turn.
I want to ask, how do I replace the numbers key'd in by the player with an X/O?
