Question: Declare and implement a function called gameOver.gameOver receives a single 3x3 char[] [] array as a parameter, representing a tic-tac-toe board, with each cell containing

Declare and implement a function called gameOver.gameOver receives a single 3x3 char[] [] array as a parameter, representing a tic-tac-toe board, with each cell containing either a X, a 0, or a (blank space). gameOver should return x if x has won the game, o ifo has won the game, and a blank space (' ') otherwise. Do not check the diagonals
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
