ONCE U ARE DONE, RUN IT SEE IF IT WORKS.... Write a program that will allow two
ID: 3616730 • Letter: O
Question
ONCE U ARE DONE, RUN IT SEE IF IT WORKS.... Write a program that will allow two users to play tic-tac-toe.The program should ask for moves alternatively from player X andplayer O. The program displays the game positions as follows:1 2 3 4 5 6 7 8 9
The players enter their moves by entering the position numberthey wish to mark. After each move, the program displays thechanged board. A sample board configuration is as follows:
X X 0 4 5 6 0 8 9 ONCE U ARE DONE, RUN IT SEE IF IT WORKS.... Write a program that will allow two users to play tic-tac-toe.The program should ask for moves alternatively from player X andplayer O. The program displays the game positions as follows:
1 2 3 4 5 6 7 8 9
The players enter their moves by entering the position numberthey wish to mark. After each move, the program displays thechanged board. A sample board configuration is as follows:
X X 0 4 5 6 0 8 9
Explanation / Answer
please rate - thanks you didn't say to check for a winner, so I didn't #include using namespace std; void print(char[]); void player(int,char[]); int main() {int i,used=0,p=0; char a[9]; for(i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.