Hi, I have been given a project to finish in school in 3 phases, the thing is I am not that good when it comes to programing. The project was to develope a tic tac toe game as following:
Write a program that will first ask the user to choose their character ‘x’ or ‘o’, as follows:
Enter your favourite character ‘x’ or ‘o’: x
Then, the program should display the following tic-tac-toe board on the screen:
following output:
Enter your selection: 5
If the user selects a space that is already occupied by a symbol ( ‘o’ or ‘x’), the program
should display an error message such as, “The selected position is already taken”.
The program should terminate after five selections are made.**
This is my first programming class and I am already facing diffuclty in such a simple task. I have basic knowledge of if statemets and loops. But can't really understand bool and "void".
I keep seeing other posts mentioning "arrays & char board[3][3]". I don't really know what that is. is there any other ways to make a tic tac toe without that?
While writing a code would be nice, I am more willing to learn, as such, an explanation of how you wrote the code would be even better!
I am using visual c++ if that amounts to anything.