Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Generate Baneposts quickly and easily using C.
/* Banepost.c Version 2.0
* Copyright (c) 2015-2017 Charlton Trezevant
* Batman characters and dialogue are property of their respective owners.
* License: MIT
* Enjoy!
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void) {
//Our array of quotes.
const char * uuuu[] = {
"You're a big guy.", "He didn't fly so well", "...for you.", "TELL ME ABOUT BANE. WHY DOES HE WEAR THE MASK\?",
"The flight plan I just filed with the agency lists me, my men, Dr.Pavel here, but only ONE of YOU!", "Dr.Pavel, I'm CIA.", "The masked man 0_0",
"Nobody cared who I was 'til I put on the mask.", "If I pull that off will you die\?", "Crashing this plane, WITH NO SURVIVORS.",
"Was getting caught part of your plan\?", "He wasn't alone.", "You don't get to bring friends.", "Don't worry, no charge for them.",
"Get 'em on board - I'll call it in.", "FIRST ONE TO TALK GETS TO STAY ON MY AIRCRAFT.", "HE DIDN'T FLY SO GOOD! WHO WANTS TO TRY NEXT\?!",
"LOT OF LOYALTY FOR A HIRED GUN!", "Or perhaps he's wondering why someone would shoot a man before throwing him out of a plane\?",
"Wiseguy, huh\? Well at least you can talk.", "Who are you\?", "It doesn't matter who we are. What matters is our plan.", "It would be extremely painful...",
"The fire rises!", "They expect one of us in the wreckage, brother.", "Now is not the time for fear... That comes later.", "Have we started a fire\?"
};
srand(time(0)); //Seed random number generator w/ time
const size_t uuuu_sz = sizeof(uuuu) / sizeof(uuuu[0]); //Size computation for random selection later
//Print the ASCII art and the quote
printf(
"\n.........................,::,,,~~+==+++=+++=====................................\n"
".......................:.,:~~:::,:~~~~~++++=~==~I,..............................\n"
"......................,,~7I\?III:=::~=~~~=++~:~,:~II~............................\n"
"......................=77III\?\?III~,,~=~=++++==+=~IIII,..........................\n"
"....................=IIIIIIIII7II\?~,~:=~===+==:::IIIIII.........................\n"
"...................77IIIIIII\?\?\?7III~:~=~=+====~~~\?IIIIII........................\n"
"..................IIIII\?\?+II7\?\?\?I\?\?I~::=======:::=IIIIIII,......................\n"
".................III\?\?I\?\?\?\?\?I\?\?\?\?=\?II=,=::~:::::::IIIIIIII,.....................\n"
"................:\?\?\?\?II\?\?+\?+++\?+=\?+\?I\?.,:::~:~:~::\?IIIIIIII.....................\n"
"................\?I\?\?\?\?I\?\?\?+IIIII+III77:,::~:,~~~::+\?\?IIIIIII....................\n"
"................\?+\?\?\?I\?\?\?++\?\?I\?I\?\?7I77I=,.,,,..~:.=\?I\?IIIIII,...................\n"
"................I\?+\?\?\?I\?\?+++\?\?\?I\?II7I\?7+=~::~=~=~=+I\?\?\?\?\?\?II\?:..................\n"
"...............=\?+\?\?\?\?\?\?\?\?\?\?\?IIIII\?\?+\?II~:,~~~:=~\?+I7IIIIIII7I7II,..............\n"
"..............:+\?\?+\?\?\?\?\?\?\?\?\?\?II7777777\?\?7~.~=::,,=I7I\?+===\?III7777 7I\?=\?~.......\n"
"............,+I++\?+I\?I\?\?I\?\?\?\?IIII\?\?I7777+~,=~~+++\?7::,:~=+=\?7I\?\?I\?77777I+\?,.....\n"
".........:\?7II+++\?\?\?\?\?\?\?\?\?\?\?\?\?\?+~::,~~::~~=++\?:~~I=:,,,,:~+=I7~~====II\?777 7\?,..\n"
".....+I77777I+==+\?\?I\?\?\?I\?\?\?I+~~~===~~:,,::=+\?\?=~\?\?:~~:~~,,:~+7+~~=+=\?\?\?\?\?I7I777 \n"
"..,+I7\?I+\?\?I\?+::=+\?I\?\?\?\?I\?\?+~~~:,~:,:,~,~~:~~::::~=~====\?I=~=\?\?~====+\?+++==++I77\n"
"I7I7II\?+===~=:..+=\?I\?I\?\?\?\?\?+=:::=\?====~~==~==+==++=+++++I77\?\?\?I:~=~=++===\?\?+\?++=\n"
"777\?\?+===~~:~:~=,=\?\?\?\?\?\?I\?\?\?+=+\?++==~=++\?~====++=++===+=I7IIIII~~~=+=++==\?=+++++\n"
"77I+I\?++===~:=+I7:I\?I\?\?\?\?\?IIIII\?III\?\?I7~\?==+\?:~,::~+=,.,,77I\?II~:~~~=\?+++\?\?+\?\?\?+\n"
"7IIII+\?\?=+==~:,7..~I\?\?\?\?\?\?\?I777777I77~:~+.:..,\?77:= 7:77., I\?I\?~:~~==\?++++=++I\?\?\n"
"III+=+==\?++=~~,.:~=:~+++\?II\?\?I7I77II=\?...,:77=:77+. I++\?7I77II7::::~~===+\?+=+\?\?\?\n"
"\?\?I\?I+\?++\?===~:,::~=.:~+\?\?\?\?\?III77I+\?7:,+++7I.:I7+.7II,+7~++7I:~~~~~~~=++++I+\?=+\n"
"II=+\?\?++\?=+=~~~,:~~:~\?,,=+\?=\?\?\?III+I7+\?+,.=77.,\?77.+\? .+I7=+\?I,+~~===~==\?++\?\?+++\n"
"\?III\?III\?\?+=~~:,:~~~:::+..,~+\?++++=7I+++..:77..:I\?..\?\?.~==+++7\?=~~~~~~===+++++=+\n"
"7IIIII++\?+++~::,:~~~~~:::~:,.,~~==+7+\?\?+..:\?I=.+I=.,=+.~~~~=+I7,::~~~==++=++++\?\?\n"
"I\?\?+\?I+\?\?+=+=:,:::~=++=:~::,,~,.,,77=\?\?,..,:~~:~~=,~\?I:~:=.++\?I7~~:~++=====++++\?\n"
"I\?\?7\?++\?=++=~,:,,:~~\?\?\?\?\?+~:::,,,+7.=I\?...:.~~~,+=..:,,+,,==\?\?I,7~======+++=++++\n"
"\?IIIIII\?\?\?++~::::,:~++\?\?\?\?==++:::7 .+7\?+,....~:~:....:~\?+~+++=..~=~~~==++=++=+++\n"
"II\?\?\?\?\?\?\?I++=~::,+,~~+\?\?\?\?==77+.~7:.+\?II\?I~:===.~~:,~~.=I7\?.\?.+,==~~~~~~+=+\?\?++\?\n"
"IIII\?I\?++\?++=~::~~.:~~==\?\?\?=7777II...,+\?~~:I7I:.\?\?=:77+.=777+::,=~~~~=~~++++=++\?\n"
"I+\?I\?I=I\?++++=~::::,:~~~==+++777\?.I+.,,..., 77..+I=.=77~,,\?\?7,+:++==~~~+===+=+++\n"
"\?\?==I\?+++\?+++=~::::,,,~~~~:~=~,\?I,,=:.,=,,I7I:..777.,77 :=~+\?I==+++=~=~~====+\?\?+\n"
"7I77I7II\?++====::::,,:,,~~~::::=..~.,.~~:,\?\?I...7 7,.\?77:+.+I7:~===+===~++++\?+++\n"
"I77\?+III\?++\?++=:::::,,,=:.~:::,,,:::,.~+\?,\?+\?,,,\?\?+:,+77~+,\?II7+==~~==~=~++==+\?=\n"
"III\?II\?+++=+==++:::::,:+\?\?=.,::,:::,:+77==II\?:~,II~:,:I7,..\?I++7\?~==~=~~~:~~~=\?\?\n"
"7I=I\?++\?\?===+++~:::~::,=\?III+..,,,,,,77\?:.7I\?,:.,,:+=.,,:.++I+\?\?+===++=~::+:~=++\n"
"I\?\?\?\?++\?\?+=\?+=+:::::::,~\?\?I\?\?\?+:,.,:77+.,.I\?++,~,,:~~,.~~~.\?.\?I\?++++==~==~=~~:\?+\n"
"777+II\?+\?=\?++=+=:::::::=+\?\?\?\?\?+++~:~+\?,..,~++,,::::::::,,~+++\?\?~:..,,..,~~===+~=\n"
"\?7I=====+\?\?I\?++=::~:::==++\?\?++++++=+\?\?,..:~,:,:,,,:,,,,,.,=II+,.,,++::,...,77777\n"
" 77I====+7I++7+\?::,:~===++\?+++\?\?+++++~~~=,,,,.,,,:::=++++\?\?\?I\?+:.,.:~:~:,..77777\n"
"+=I\?+++\?\?\?\?+=~+~:::~=++++=+++\?\?\?\?\?\?+\?=====~~======++++++\?\?\?\?I\?=~,,,.,...,,.\?7777\n"
"\t%s\n\n", uuuu[rand() % uuuu_sz]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment