<prompt> Unda programu ya kompyuta ya kucheza mchezo wa tic-tac-toe  <response>: Here is one possible implementation of a tic-tac-toe game in Python:pythonimport randomdef print_boardboard: Function to print the Tic-tac-toe board for i in range3: for j in range3: printboardij, end printdef check_winboard: Function to check if the game has ended in a win check rows for i in range3: if boardi0 boardi1 boardi2 and boardi0 ! : return True check columns for i in range3: if board0i board1i board2i and board0i ! : return True check diagonals if board00 board11 board22 and board00 ! : return True if board02 board11 board20 and board02 ! : return True return Falsedef make_moveboard, player: Function to make a move for the player if player human: x intinputEnter x coordinate: y intinputEnter y coordinate: while boardxy ! : printInvalid move! Try again. x intinputEnter x coordinate: y intinputEnter y coordinate: boardxy X else: x, y random.randint0, 2, random.randint0, 2 while boardxy ! : x, y random.randint0, 2, random.randint0, 2 boardxy Odef play_game: Function to play the Tic-tac-toe game board for i in range3 for j in range3 print_boardboard while True: printHumans turn make_moveboard, human print_boardboard 