Sep-25-2020, 03:50 PM
(This post was last modified: Sep-25-2020, 08:17 PM by deanhystad.)
The positions are not empty when you start, they contain spaces.
Your game is hard to play. I didn't know how I was supposed to enter a position on the board. Do I enter row column or row, column or column, row or something else. Why do I have to enter two numbers? I don't like to type. Is the top left position 1, 1 or 0, 0?
There have been a lot of tic-tac-toe games on the forum and I like the ones that present the board like this:
Using positions 1 through 9 also changes the board from a matrix to an array. And you don't have to worry about blank slots because the board starts out full.
Your game is hard to play. I didn't know how I was supposed to enter a position on the board. Do I enter row column or row, column or column, row or something else. Why do I have to enter two numbers? I don't like to type. Is the top left position 1, 1 or 0, 0?
There have been a lot of tic-tac-toe games on the forum and I like the ones that present the board like this:
Output:1 2 3
4 5 6
7 8 9
Enter position (1-9) for X:
It is pretty clear I should type 5 to put 'X' in the center position.Using positions 1 through 9 also changes the board from a matrix to an array. And you don't have to worry about blank slots because the board starts out full.