<kaggle_start><code># # Tic Tac Toe
# BMS College of Engineering - Dr Kavitha Sooda
# Create a 3x3 tic tac toe board of "" strings for each value
board = None


# Create a function to display your board
def display_board(board):
    pass


display_board(board)


# Create a function to check if anyone won, Use marks "X" or "O"
def check_win(player_mark, board):
    ## If the player has won then there must be 3 consecutive Player values
    pass


check_win("X", board)


# # The AI agent
# ## Create and agent
# 1. Check the immediate move to see if anyone wins
# 2. Check if there are fork moves for anyone
# 3. Create a stategy if no fork or immediate moves
# Immediate move checker
def test_win_move(move, player_mark, board):
    test_b = board.copy()  # Test board to try the new move
    pass


# Fork move checker
def test_fork_move(move, player_mark, board):
    test_b = board.copy()  # Test board to try the new move
    pass


# Strategy if others fail
def final_strategy(board):
    pass


# Agents move
def get_agent_move(board):
    # Check Agent win or Player win
    # Check Agent fork or Player fork
    # Final Strategy
    pass


# Assemble the game
def tictactoe(board):
    pass


# Play!!!
tictactoe(board)
<|endoftext|>
[{"Id": 42552163, "ScriptId": 11684452, "ParentScriptVersionId": NaN, "ScriptLanguageId": 9, "AuthorUserId": 3482267, "CreationDate": "09/13/2020 02:31:24", "VersionNumber": 1.0, "Title": "AI-Lab Program 1", "EvaluationDate": "09/13/2020", "IsChange": true, "TotalLines": 57.0, "LinesInsertedFromPrevious": 57.0, "LinesChangedFromPrevious": 0.0, "LinesUnchangedFromPrevious": 0.0, "LinesInsertedFromFork": NaN, "LinesDeletedFromFork": NaN, "LinesChangedFromFork": NaN, "LinesUnchangedFromFork": NaN, "TotalVotes": 0}]
# # Tic Tac Toe
# BMS College of Engineering - Dr Kavitha Sooda
# Create a 3x3 tic tac toe board of "" strings for each value
board = None


# Create a function to display your board
def display_board(board):
    pass


display_board(board)


# Create a function to check if anyone won, Use marks "X" or "O"
def check_win(player_mark, board):
    ## If the player has won then there must be 3 consecutive Player values
    pass


check_win("X", board)


# # The AI agent
# ## Create and agent
# 1. Check the immediate move to see if anyone wins
# 2. Check if there are fork moves for anyone
# 3. Create a stategy if no fork or immediate moves
# Immediate move checker
def test_win_move(move, player_mark, board):
    test_b = board.copy()  # Test board to try the new move
    pass


# Fork move checker
def test_fork_move(move, player_mark, board):
    test_b = board.copy()  # Test board to try the new move
    pass


# Strategy if others fail
def final_strategy(board):
    pass


# Agents move
def get_agent_move(board):
    # Check Agent win or Player win
    # Check Agent fork or Player fork
    # Final Strategy
    pass


# Assemble the game
def tictactoe(board):
    pass


# Play!!!
tictactoe(board)
