Question
Tic-Tac-Toe Game in C programming Language. Q1) Write a C function that allows the user to find if any next move or next play for
Tic-Tac-Toe Game in C programming Language.
Q1) Write a C function that allows the user to find if any next move or next play for any player or O who has the turn to play is winning move.The function will print the cell number or ID that if the player places an X or O in it he/she will win the game.If there is more than one cell where the player could place his symbol in and win the game the function should print all the winning cells for that player. The function prototype is voidListWinningCells(int m, int n, char board[][n])
Q2. Write a C function that finds which player (player X or O) has won the game(if any) use recursion to implement this function.If there is no winner the function should return 'D' otherwise return the winner symbol, either 'X' or 'O 'The function prototype is char WhoIsTheWinner(int m, int n, char board[][n])
Note : I want Answer to only Question.2 Thank You
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started