PLEASE READ VERY CAREFULLY
write a client.py and server.py file for tic-tac-toe INPYTHON with the following restrictions (SO WRITE TWO FILES THATPLAY PYTHON THROUGH A SOCKET)
Use a 5 x 5 grid (dimensions are subject to change, so useconstants for NUM_ROWS and NUM_COLS)
Use 'X' for player 1 and 'O' for player 2 (symbols and the numberof players is subject to change, so use constants)
Each player can make 1 move per turn before having to wait for thenext player to move. If an illegal move is made, an
error message is sent to the player by the server and the playerloses the current turn
SO AGAIN TO RECAP A TIC TAC TOE PROGRAM IN PYTHON THAT ALLOWSTWO PLAYERS TO PLAY TOGETHER, a client and a server file
the end result will include coding similar to this
HOST = '127.0.0.1'
PORT = 12345
NUM_CONNECTIONS = 1
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind((HOST, PORT))
sock.listen(NUM_CONNECTIONS)