Check to see if the diagonal wins in tic tac toe
问题 I have been given the code for a tic tac toe game. I produced the code to check to see if the vertical will win and have tried to check the diagonal. I was able to check the primary diagonal but can't seem to determine how to check the secondary. I thought the code i have would work but it does not. The issue I am having begins on line 172 #include <stdio.h> #include <stdlib.h> // rand(), srand() #include <time.h> // time() // Size of the board (square) const int BOARD_SIZE = 3; // Symbols