our representation of board will be list of lists of characterswith or designating player' moveor designating an empty space for examplethe board configuration will be stored internally as ] ] ]we develop complete python class for maintaining tic-tac-toe board for two players that class will keep track of the moves and report winnerbut it does not perform any strategy or allow someone to play tic-tac-toe against the computer the details of such program are beyond the scope of this but it might nonetheless make good course project (see exercise - before presenting the implementation of the classwe demonstrate its public interface with simple test in code fragment game tictactoex movesgame mark( )game mark( )game mark( )game mark( )game mark( movesgame mark( game mark( game mark( game mark( print(gamewinner game winnerif winner is noneprinttie elseprint(winnerwins code fragment simple test for our tic-tac-toe class the basic operations are that new game instance represents an empty boardthat the mark( ,jmethod adds mark at the given position for the current player (with the software managing the alternating of turns)and that the game board can be printed and the winner determined the complete source code for the tictactoe class is given in code fragment our mark method performs error checking to make sure that valid indices are sentthat the position is not already occupiedand that no further moves are made after someone wins the game