5/5 – (1 vote)
Game of Tic Tac Toe Use a 2-D char array with 3 rows and 3 columns as the game board.
Each element in the array should be initialized with an asterix (*).
The program should contain a loop that
1) Displays the contents of the board array.
2) Allows player 1 to select a location on the board for an X, the program should ask the user for the row and col number. Validate the row and column entered.
3) Allows player 2 to select a location on the board for an O. The program should ask the user for the row and col number. Validate the row and column entered.
Reviews
There are no reviews yet.