<prompt> Etsa lenaneo le ka bapalang tic-tac-toe khahlanong le sebapali sa motho.nan  <response>: Instruction in English: Create a program that can play tic-tac-toe against a human player. . Response in English: Here is a Tic-Tac-Toe program in Python that allows a human player to play against an AI:pythonimport randomdef print_boardboard: for row in board: print .joinrowdef make_moveboard, player, x, y: if boardxy ! : return False boardxy player return Truedef has_winnerboard: Check rows for row in board: if row0 row1 row2 and row0 ! : return row0 Check columns for col in range3: if board0col board1col board2col and board0col ! : return board0col Check diagonals if board00 board11 board22 and board00 ! : return board00 if board02 board11 board20 and board02 ! : return board02 No winner return Nonedef make_ai_moveboard, ai_player: Check if AI can win for x in range3: for y in range3: if boardxy : boardxy ai_player if has_winnerboard ai_player: return boardxy Check if player can win and block player X if ai_player O else O for x in range3: for y in range3: if boardxy : boardxy player if has_winnerboard player: boardxy ai_player return boardxy Make a random move available_moves x, y for x in range3 for y in range3 if boardxy x, y random . Response in Sesotho: Mona ke lenaneo la Tic-Tac-Toe ho Python le lumellang sebapali sa motho ho bapala khahlanong le AI: python import random def print_boardboard: bakeng sa mola ka hara board: print .joinrow def make_moveboard, player, x, y: haeba boardxy ! : kgutlisetsa Boto ya Bohataxy kgutliso ya sebapadi Def ya nnete e na le_mofenyiboto: Sheba mela bakeng sa mola ka hara boto : haeba mola0 mola1 mola2 le mola0 ! : mola o khutlang0 Sheba litšiea bakeng sa col in range3: if board00 col board1col board2col le board0col ! : return board0col Lekola diagonale haeba boto0col 0 boto11 boto22 le boto00 ! : letlapa la kgutliso00 haeba letlapa02 board11 board20 le board02 ! : return board02 Ha ho mohlodi ya kgutlisang Ha ho na def make_ai_moveboard, ai_player : Lekola hore na AI e ka hlola bakeng sa x moleng3: bakeng sa y sebakeng3: haeba boardxy : boardxy ai_player haeba e na le_winnerboard ai_player: return boardxy Sheba hore na sebapali se ka hlola mme sa thibela sebapali X haeba ai_player O e ngoe O bakeng sa x moleng3: bakeng sa y ho range3: haeba boardxy : boardxy sebapali haeba se na le_mofenyiboard player: boardxy ai_player return boardx y Etsa hore motsamao o be teng_moves x, y bakeng sa x moleng3 bakeng sa y moleng3 haeba boardxy x, y ka tšohanyetso 