I want to create sheets of playing cards for a game. There isn't a known package for this, however stealing from a previous answer and deleting things until it made sense got me this far:
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\newlength\cardheight
\newlength\cardwidth
\setlength\cardheight{0.25\textheight}
\setlength\cardwidth{0.4\textwidth}
\newcommand\cards[1]{%
\par\noindent
\fbox{\begin{minipage}[t][\cardheight][t]{\dimexpr\cardwidth-2\fboxsep-2\fboxrule\relax}
\vspace{\baselineskip}
\LARGE ~ #1
\vfill
\small ~ Cards Against Humanity %I should insert the CAH logo in my final version
\end{minipage}} %\par\bigskip%
} %
\pagestyle{empty}
\begin{document}
\centering
\cards{%
Classicist undertones.
}
\cards{%
A windmill full of corpses.
}
\cards{%
A tiny horse.
}
\end{document}
However, this gets me three cards stacked on top of one another. How can I get them to tile automatically (So it goes something like card:card:card, newrow card:card:card)? The exact number of cards that each page has horizontally and vertically doesn't matter; I just want each card to sit next to each other instead of each new one appearing on a new line.
(Feel free to abandon my code if there is a better way to do this: As I said, I just copied it from an example that was only sort of related.)

