python question! Practice project: The tic-tac-toe game we are going to create i
ID: 3675103 • Letter: P
Question
python question!
Practice project: The tic-tac-toe game we are going to create is the well-known game: There is a 3x3 board (matrix). initially empty. There are two players, the X-player and the O-player, that take turns each making one move' at a time. A move, is the placement of an X, or an 'O' in a currently empty position of the board by the X-player or the O-player. respectively (depending on whose turn it is to play). The X-player always starts first. The winner is the first player that will fill a horizontal or a vertical or a main diagonal line with his/her symbol (i.e., three consecutive 'X's or 'O's). Note that the game may end without a winner (actually kids stop playing the game once they realize that, after a little thought, draw is always the end-result). In this project, there are two possibilities for the game: either both players are human (2-player mode) or one player is human and the other player is the computer. To simplify things, let's always assume that the X- player is human. To help the player(s), after every move, the computer outputs the current state of the board in the following format