%--------------------------------------- % White pieces icons \newcommand{\iWK}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WK} \end{tikzpicture} } \newcommand{\iWQ}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WQ} \end{tikzpicture} } \newcommand{\iWB}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WB} \end{tikzpicture} } \newcommand{\iWN}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WN} \end{tikzpicture} } \newcommand{\iWR}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WR} \end{tikzpicture} } \newcommand{\iWP}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WP} \end{tikzpicture} } %--------------------------------------- % Black pieces icons \newcommand{\iBK}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BK} \end{tikzpicture} } \newcommand{\iBQ}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BQ} \end{tikzpicture} } \newcommand{\iBB}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BB} \end{tikzpicture} } \newcommand{\iBN}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BN} \end{tikzpicture} } \newcommand{\iBR}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BR} \end{tikzpicture} } \newcommand{\iBP}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BP} \end{tikzpicture} } %--------------------------------------- % Mixed pieces icons \newcommand{\iMK}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WK} \clip (40, 40) -- (40, 10) -- (10, 40); \input{icons/BK} \end{tikzpicture} } \newcommand{\iMQ}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WQ} \clip (41, 41) -- (41, 9) -- ( 9, 41); \input{icons/BQ} \end{tikzpicture} } \newcommand{\iMB}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WB} \clip (40, 40) -- (40, 8) -- ( 8, 40); \input{icons/BB} \end{tikzpicture} } \newcommand{\iMN}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WN} \clip (40, 40) -- (40, 10) -- (10, 40); \input{icons/BN} \end{tikzpicture} } \newcommand{\iMR}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WR} \clip (40, 40) -- (40, 8) -- ( 8, 40); \input{icons/BR} \end{tikzpicture} } \newcommand{\iMP}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/WP} \clip (40, 40) -- (40, 8) -- ( 8, 40); \input{icons/BP} \end{tikzpicture} } %--------------------------------------- % Misc icons \newcommand{\inoK}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \input{icons/BK} \draw[xshift=18, yshift=20, rotate=45, double] (0, 0) circle (15) (0, -15) -- (0, 15); \end{tikzpicture} } \newcommand{\iBoard}{ \begin{tikzpicture}[y=0.80pt, x=0.80pt, xscale=0.5, yscale=-0.5, inner sep=0pt, outer sep=0pt] \path[draw, fill, line width=0.6pt, line join=round, miter limit=4.00] (0, 8) -- (20, 0) -- (40, 8) -- (20, 20) -- cycle; \path[draw, line width=0.4pt, line join=round, miter limit=4.00] (0, 8) -- (0, 11) -- (20, 23) -- (40, 11) -- (40, 8) -- cycle (20, 20) -- (20, 23); \path[draw, fill=white, line width=0.1pt] (10, 4) -- (20, 0) -- (30, 4) -- (20, 9) -- cycle (10, 14) -- (20, 9) -- (30, 14) -- (20, 20) -- cycle; \end{tikzpicture} } \newcommand{\iWA}{ \begin{tikzpicture}[y=6pt, x=6pt, yscale=-1, inner sep=0pt, outer sep=0pt] \path[draw, line width=0.6pt, line cap=round, line join=round, miter limit=4.00] (0.5, -0.866025) -- (1, 0) -- (0.5, 0.866025) -- (-0.5, 0.866025) -- (-1, 0) -- (-0.5, -0.866025) -- cycle; \path[draw, fill] (0, 0) circle (0.3); \end{tikzpicture} } \newcommand{\iBA}{ \begin{tikzpicture}[y=6pt, x=6pt, yscale=-1, inner sep=0pt, outer sep=0pt] \path[draw, fill, line width=0.6pt, line cap=round, line join=round, miter limit=4.00] (0.5, -0.866025) -- (1, 0) -- (0.5, 0.866025) -- (-0.5, 0.866025) -- (-1, 0) -- (-0.5, -0.866025) -- cycle; \path[draw=white, fill=white] (0, 0) circle (0.3); \end{tikzpicture} } \newcommand{\iMA}{ \begin{tikzpicture}[y=6pt, x=6pt, yscale=-1, inner sep=0pt, outer sep=0pt] \path[draw, line width=0.6pt, line cap=round, line join=round, miter limit=4.00] (0.5, -0.866025) -- (1, 0) -- (0.5, 0.866025) -- (-0.5, 0.866025) -- (-1, 0) -- (-0.5, -0.866025) -- cycle; \path[draw, fill] (0, 0) circle (0.3); \clip (-1, 1) -- (1, -1) -- (1, 1); \path[draw, fill, line width=0.6pt, line cap=round, line join=round, miter limit=4.00] (0.5, -0.866025) -- (1, 0) -- (0.5, 0.866025) -- (-0.5, 0.866025) -- (-1, 0) -- (-0.5, -0.866025) -- cycle; \path[draw=white, fill=white] (0, 0) circle (0.3); \end{tikzpicture} }