i probably put more photos of my code than needed but i am having a hard time figuri 5153377
I probably put more photos of my code than needed but i am having a hard time figuring out how to redraw the board with an X in the spot that matches. I have attached the prompt and what i have so far as to how I’m trying to do it i start checking for a match and “attempt” to redraw the board around line 187, and the initial data of the board is created and stored at lines 10-125 but all of the numbers are stored in arrays a1[],….a4[]. This has to be in C programming language not C++
peration The program should first display this board with the random numbers in each square as shown above. It should then continually prompt the user to “Press、Enter, to generate a square (or 、q' to quit) ” Each time the user presses [Enter] the program should produce a randomly generated combination of a letter (D, A, B', or 'O') and a number valid to each column ('1 20 for D', '21-40 for A' etc.) and display the result along with the counter that is incremented every time a letter-number combination has been generated for the game. For example: 1: D-7 2: 0-78 3: A-17 If the number generated is present on the board, then the program should display an x in that chosen cell and redraw the board. The program should keep track of which squares have been marked and check to see if a Dabo' has been produced. A Dabo is produced any time all four squares in any row or any column have been marked with an X. (The Free' square is already considered to be marked from the beginning.) A Dabo' is also produced anytime all four squares in one of the two diagonals have been marked. If and when a Dabo' has been reached, the program should notify the user and also print out the number of inputs it took to get a Dabo. After the user receives a Dabo,' they should be prompted whether or not they wish to play again and should also clear the letter-number generator counter. If the user inputs a 'q' at the prompt the program should quit after printing how many games were played