Minor cleanup

This commit is contained in:
2023-12-06 14:03:22 -08:00
parent a48e6f5d15
commit e4ebdac31a
7 changed files with 112 additions and 120 deletions

View File

@ -0,0 +1,33 @@
\def\nstars#1#2{%
\ifnum #2 > 0%
\def\starcolor{\color{#1}}%
\count255=1%
\loop{%
\starcolor $\bigstar$%
}%
\ifnum \count255 < #2%
\advance\count255 by 1%
\repeat%
\fi%
}
\def\startimes#1{
{\color{ogrape} $\bigstar \times #1$}
}
\def\onestars#1{
\nstars{ogrape}{#1}
}
\def\threestars#1#2#3{
\nstars{white}{#1}\nstars{ogrape}{#2}\nstars{white}{#3}
}
% Not used, commented out.
\def\difficulty#1#2{
\textbf{Difficulty:} \stars{#1}{#2} \par
\vspace{1mm}
}