week0/tictactoe/tictactoe.py
def result(board, action):
    """
    Returns the board that results from making move (i, j) on the board.
    """
    player_move = player(board)

    new_board = deepcopy(board)
    i, j = action

    if board[i][j] != None:
        raise Exception
    else:
        new_board[i][j] = player_move

    return new_board

    Returns the board that results from making move (i, j) on the board.
    
Returns the board that results from making move (i, j) on the board.
Returns the board that results from making move ( i j ) on the board .
def result(board, action):
    player_move = player(board)
    new_board = deepcopy(board)
    i, j = action
    if board[i][j] != None:
        raise Exception
    else:
        new_board[i][j] = player_move
    return new_board
def result ( board , action ) : player_move = player ( board ) new_board = deepcopy ( board ) i , j = action if board [ i ] [ j ] != None : raise Exception else : new_board [ i ] [ j ] = player_move return new_board
Returns the board that results from making move (i, j) on the board.
Returns the board that results from making move ( i j ) on the board .
"""
    Returns the board that results from making move (i, j) on the board.
    """
board
action