Question: in python, 7. Assume board represents a tic-tac-toe board (3 x 3). For example if, board = [ [X, ., O],[O, O, .], [X, X,
in python,
7. Assume board represents a tic-tac-toe board (3 x 3). For example if,
board = [ ["X", ".", "O"],["O", "O", "."], ["X", "X", "X"]] , then player X won the
game by completing the bottom row. Each . represents an empty square. Write a function
called "allDone" which is passed a tic-tac-toe board and returns True if either player
won the game. If the game was a draw, the function returns False. A win consists of three
consecutive Xs or three consecutive Os in a row, a column, or diagonal. Any method that
works is fine, but give it some thought before you jump in.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
