\documentclass[tikz]{standalone}

\usetikzlibrary{decorations.pathreplacing,decorations.markings}
\usetikzlibrary{patterns}

\begin{document}

\begin{tikzpicture}[scale = 1.3]

\draw[gray,thick,dashed] (0,1) to node[midway,below,yshift=3pt,xshift=-3pt,scale=0.75]{ $x_r$} (1,0);
\draw[gray,thick,dashed] (1,1) to node[midway,below,yshift=3pt,xshift=-3pt,scale=0.75]{ $x_r$} (2,0);
\draw[gray,thick,dashed] (2,1) to node[midway,below,yshift=3pt,xshift=-3pt,scale=0.75]{ $x_\ell$} (3,0);

\draw[thick, orange] (0,0) to node[below, midway, scale = 0.75]{$x_\ell$}  (1,0);
\draw[thick] (1,0) to node[midway,right,xshift=-2pt,scale=0.75]{$x_\ell$} (1,1);
\draw[thick, orange] (1,1) to node[midway,above,xshift=3pt,scale=0.75]{$x_r$} (0,1);
\draw[thick] (0,1) to node[left, midway, scale = 0.75] {$x_r$} (0,0);
\draw[thick] (1,0) to node[below, midway, scale = 0.75]{$x_r$} (2,0);
\draw[thick, orange] (2,0) to node[midway, right, scale = 0.75, xshift = -2pt] {$x_r$} (2,1);
\draw[thick] (2,1) to node[above, midway, scale = 0.75]{$x_\ell$} (1,1);
\draw[thick] (2,0) to node[midway,below,xshift=2pt,scale=0.75]{$x_r$} (3,0);
\draw[thick, orange] (3,0) to node[midway, right, scale = 0.75] {$x_\alpha$} (3,1);
\draw[thick] (3,1) to node[midway, above, scale = 0.75] {$x_\beta$}(2,1);
\end{tikzpicture}
\end{document}