def _get_cost(self, board, color, move):
        """ 
        Returns the difference in # of pieces after the given move is executed.
        """
        # create a deepcopy of the board to preserve state of the actual board
        newboard = deepcopy(board)
        newboard.execute_move(move, color)

        # Count the # of pieces of each color on the board.
        num_pieces_op = len(newboard.get_squares(color*-1))
        num_pieces_me = len(newboard.get_squares(color))

        # Return the difference in pieces
        return num_pieces_me - num_pieces_op
dataset/ETHPy150Open JaimieMurdock/othello/othello/engines/oneply.py/OneplyEngine._get_cost/original