<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[skaknew]{chessboard, skak}
\begin{document}

\begin{frame}
\newgame
\only&lt;1-&gt;{\setchessboard{hideall,showmover=false}}
\only&lt;2-&gt;{\setchessboard{showpieces={p,P}}}
\only&lt;3-&gt;{\setchessboard{showpieces={K,k}}}
\only&lt;4-&gt;{\setchessboard{showpieces={Q,q}}}
\only&lt;5-&gt;{\setchessboard{showpieces={R,r}}}
\only&lt;6-&gt;{\setchessboard{showpieces={B,b}}}
\only&lt;7-&gt;{\setchessboard{showpieces={N,n}}}
\chessboard
\end{frame}

\begin{frame}
\newgame\setchessboard{markstyle=border,color=blue}
\only&lt;1&gt;{\mainline{1.e4}}
\only&lt;1&gt;{\setchessboard{markfields=e4}}
\only&lt;2&gt;{\hidemoves{1.e4}\mainline{1... e5}}
\only&lt;2&gt;{\setchessboard{markfields=e5}}
\only&lt;3&gt;{\hidemoves{1.e4 e5}\mainline{2. Nf3}}
\only&lt;3&gt;{\setchessboard{markfields=f3}}
\only&lt;4&gt;{\hidemoves{1.e4 e5 2.Nf3}\mainline{2... Nc6}}
\only&lt;4&gt;{\setchessboard{markfields=c6}}

\chessboard
\end{frame}
\end{document}
</pre></body></html>