A Racket program that generates cards in the style of Cards Against Humanity.
White Card | Black Card | Black Card (Pick 2) | Black Card (Pick 3) |
---|---|---|---|
Download and install Racket on your computer. After that, install the required Pollen package.
Open up your favorite command line and clone the Github repo to your computer:
$ git clone https://github.com/ZacharyEspiritu/racket-against-humanity.git
$ cd racket-against-humanity
racket-against-humanity uses the racket
command to load its function definitions. Along with the definition file path, the command takes a single parameter, "white"
or "black"
:
$ racket "racket-against-humanity.rkt" "white" ; generates white cards from white.txt
$ racket "racket-against-humanity.rkt" "black" ; generates black cards from black.txt
This will start the process of generating your cards. All card captions should be placed in the black.txt
and white.txt
files, each separated by a newline. They will be saved to the ./black-cards
and ./white-cards
folders, respectively.
You can change the image that your captions are superimposed upon by swapping out the files in the ./template-images/blanks
for images with the exact same name and dimensions. The required file names are:
front-white.png
front-black.png
front-black-pick2.png
front-black-pick3.png
You can specify a black card's caption to be generated as a "Pick 2" and "Pick 3" card by putting a 2
or a 3
immediately after the last character of your caption:
# black.txt
Here's a normal card.
Woah, this is a Pick 2 card.2
And here's a Pick 3 card.3
Captions with these modifiers will be superimposed on the front-black-pick2.png
and front-black-pick3.png
cards according to your specifications.
racket-against-humanity is licensed under the GNU Affero General Public License Version 3.
Please refer to the LICENSE file or the GNU's website for more information.
racket-against-humanity: A Cards Against Humanity generator, in Racket
Copyright (C) 2017 Zachary Espiritu (http://zacharyespiritu.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.