Debian Codegraph @

texmf-dist/metapost/bbcard/bbcard.mp

raw
1
2 % bullshit bingo card
3 % prepared by patrick tj mcphee, december 2002 [email protected]
4 % released to the public domain. have fun
5
6 % concept and many phrases taken from
7 % http://www.perkigoth.com/home/kermit/stuff/BullshitBingo
8 % others from the list of banished words of Lake Superior State University:
9 % http://www.lssu.edu/banished
10 % my thanks to all who have contributed to these efforts
11
12 % to run off a single card, give a command like
13 % mpost bbcard
14 % and the card will written to bbcard.ps
15
16 % to run off cards for several players, try
17 % mpost '\nocards := 7; input bbcard'
18 % and the cards will be written to bbcard.1, bbcard.2, .., bbcard.7
19
20 % to add additional phrases, duplicate one of the lines starting with
21 % i := i + 1; bs[i] :=
22 % and replace the phrase in quotes
23 % I keep them in alphabetical order to ease maintenance, but you don't
24 % have to. I suggest commenting out phrases which are not known in
25 % your community and adding the irritating ones which are.
26
27 input breakwidth;
28
29 defaultfont := "ptmr8r";
30
31 prologues := 2;
32
33 string bs[];
34 i := 0;
35
36 i := i + 1; bs[i] := "action item";
37 i := i + 1; bs[i] := "actual facts";
38 i := i + 1; bs[i] := "articulate";
39 i := i + 1; bs[i] := "as we speak";
40 i := i + 1; bs[i] := "at the end of the day";
41 i := i + 1; bs[i] := "at this point in time";
42 i := i + 1; bs[i] := "backward compatible";
43 i := i + 1; bs[i] := "ballpark";
44 i := i + 1; bs[i] := "bandwidth";
45 i := i + 1; bs[i] := "basically";
46 i := i + 1; bs[i] := "been there, done that";
47 i := i + 1; bs[i] := "benchmark";
48 i := i + 1; bs[i] := "best of breed";
49 i := i + 1; bs[i] := "best practice";
50 i := i + 1; bs[i] := "buzz";
51 i := i + 1; bs[i] := "by and large";
52 i := i + 1; bs[i] := "challenge";
53 i := i + 1; bs[i] := "client-focused";
54 i := i + 1; bs[i] := "collaborative";
55 i := i + 1; bs[i] := "conceptualize";
56 i := i + 1; bs[i] := "core business";
57 i := i + 1; bs[i] := "core competency";
58 i := i + 1; bs[i] := "critical path";
59 i := i + 1; bs[i] := "down the road";
60 i := i + 1; bs[i] := "down time";
61 i := i + 1; bs[i] := "downsizing";
62 i := i + 1; bs[i] := "drill down";
63 i := i + 1; bs[i] := "dynamic";
64 i := i + 1; bs[i] := "each and every";
65 i := i + 1; bs[i] := "empower employees";
66 i := i + 1; bs[i] := "extreme";
67 i := i + 1; bs[i] := "fast-track";
68 i := i + 1; bs[i] := "fault tolerant";
69 i := i + 1; bs[i] := "front lines";
70 i := i + 1; bs[i] := "game plan";
71 i := i + 1; bs[i] := "gap analysis";
72 i := i + 1; bs[i] := "go public";
73 i := i + 1; bs[i] := "go the extra mile";
74 i := i + 1; bs[i] := "going forward";
75 i := i + 1; bs[i] := "hard-won lessons";
76 i := i + 1; bs[i] := "hardball";
77 i := i + 1; bs[i] := "having said that";
78 i := i + 1; bs[i] := "heads up";
79 i := i + 1; bs[i] := "issues";
80 i := i + 1; bs[i] := "knock-on effect";
81 i := i + 1; bs[i] := "knowledgebase";
82 i := i + 1; bs[i] := "lessons learned";
83 i := i + 1; bs[i] := "make no mistake";
84 i := i + 1; bs[i] := "manage expectations";
85 i := i + 1; bs[i] := "meaningful";
86 i := i + 1; bs[i] := "metrics";
87 i := i + 1; bs[i] := "mind share";
88 i := i + 1; bs[i] := "mindset";
89 i := i + 1; bs[i] := "mission critical";
90 i := i + 1; bs[i] := "move the goal posts";
91 i := i + 1; bs[i] := "movers and shakers";
92 i := i + 1; bs[i] := "new economy";
93 i := i + 1; bs[i] := "no blame";
94 i := i + 1; bs[i] := "no-brainer";
95 i := i + 1; bs[i] := "now, more than ever";
96 i := i + 1; bs[i] := "off-site meeting";
97 i := i + 1; bs[i] := "off-the-shelf";
98 i := i + 1; bs[i] := "offload";
99 i := i + 1; bs[i] := "on the same page";
100 i := i + 1; bs[i] := "open source";
101 i := i + 1; bs[i] := "out of the loop";
102 i := i + 1; bs[i] := "out-source";
103 i := i + 1; bs[i] := "outside the box";
104 i := i + 1; bs[i] := "paradigm";
105 i := i + 1; bs[i] := "partnership";
106 i := i + 1; bs[i] := "proactive, not reactive";
107 i := i + 1; bs[i] := "profitability";
108 i := i + 1; bs[i] := "progressing";
109 i := i + 1; bs[i] := "pushback";
110 i := i + 1; bs[i] := "put this one to bed";
111 i := i + 1; bs[i] := "results-driven";
112 i := i + 1; bs[i] := "revenue";
113 i := i + 1; bs[i] := "revisit";
114 i := i + 1; bs[i] := "robust";
115 i := i + 1; bs[i] := "run it up the flagpole";
116 i := i + 1; bs[i] := "run the numbers";
117 i := i + 1; bs[i] := "sales driven";
118 i := i + 1; bs[i] := "scope";
119 i := i + 1; bs[i] := "service oriented";
120 i := i + 1; bs[i] := "slippery slide";
121 i := i + 1; bs[i] := "speaks to";
122 i := i + 1; bs[i] := "strategic fit";
123 i := i + 1; bs[i] := "stretch the envelope";
124 i := i + 1; bs[i] := "synergy";
125 i := i + 1; bs[i] := "take that offline";
126 i := i + 1; bs[i] := "target audience";
127 i := i + 1; bs[i] := "team player";
128 i := i + 1; bs[i] := "the big picture";
129 i := i + 1; bs[i] := "the bottom line";
130 i := i + 1; bs[i] := "think outside the box";
131 i := i + 1; bs[i] := "ticks in boxes";
132 i := i + 1; bs[i] := "time to market";
133 i := i + 1; bs[i] := "timeline";
134 i := i + 1; bs[i] := "to be perfectly honest";
135 i := i + 1; bs[i] := "total quality";
136 i := i + 1; bs[i] := "touch base";
137 i := i + 1; bs[i] := "up to speed";
138 i := i + 1; bs[i] := "user friendly";
139 i := i + 1; bs[i] := "value-added";
140 i := i + 1; bs[i] := "vast majority";
141 i := i + 1; bs[i] := "very unique";
142 i := i + 1; bs[i] := "walk the talk";
143 i := i + 1; bs[i] := "web-enabled";
144 i := i + 1; bs[i] := "win-win situation";
145 i := i + 1; bs[i] := "wow factor";
146
147 bsmax := i;
148
149 radius := .5 cm;
150
151 offset := 1 cm;
152 boxwid := 1.9 cm;
153
154
155 % co-ordinates for the grid
156 pair bpos[], bpos[].ll, bpos[].ul, bpos[].ur, bpos[].lr;
157 for i = 0 upto 4:
158 for j = 0 upto 4:
159 bpos[i+j*5+1] := ((j+0.5)*boxwid, (i+0.5)*boxwid);
160 bpos[i+j*5+1].ll := (j*boxwid, i*boxwid);
161 bpos[i+j*5+1].ul := (j*boxwid, (i+1)*boxwid);
162 bpos[i+j*5+1].lr := ((j+1)*boxwid, i*boxwid);
163 bpos[i+j*5+1].ur := ((j+1)*boxwid, (i+1)*boxwid);
164 endfor;
165 endfor;
166
167 picture bbcard[];
168
169 % the grid itself
170 bbcard[0] := image(
171 z1 = (0, radius) = z2 - (0, 5boxwid - 2radius) =
172 z6 - (5boxwid, 0) = z8 - (radius, -radius);
173 z3 = z8 + (0, 5boxwid) = z4 - (5boxwid-2radius, 0);
174 x5 = x6; y5 = y2;
175 x7 = x4;
176 y7 = y8;
177
178 pickup pencircle xscaled 4pt yscaled 1pt rotated 30;
179
180 draw z1---z2..z3---z4..z5---z6..z7---z8..cycle;
181
182 fill ((unitsquare shifted -(.5,.5)) scaled boxwid) shifted bpos[13] withcolor .8 white;
183
184 pickup pencircle scaled 1pt;
185 for i = 2 upto 5:
186 draw bpos[i].ll--bpos[i+20].lr;
187 endfor;
188
189 for i = 10 step 5 until 25:
190 draw bpos[i].ul--bpos[i-4].ll;
191 endfor;
192 );
193
194 % handle > 1 card if nocards was set on the command-line
195 if known nocards:
196 for bsno = 1 upto nocards:
197 else:
198 if unknown bsno:
199 bsno := -1;
200 fi;
201 fi;
202
203 % select the strings for each card
204 % after we're done, we set the middle square to `Free Square'
205 % dups[] is used to keep track of already used values to eliminate
206 % duplicates within each grid (a playing card has four grids on it)
207
208 for bb = 1 upto 4:
209 string bstring[];
210 numeric dups[];
211
212 for i = 1 upto 25:
213 j := 1+floor(uniformdeviate bsmax);
214
215 forever:
216 exitif unknown dups[j];
217 j := 1+floor(uniformdeviate bsmax);
218 endfor;
219 dups[j] := i;
220 bstring[i] = bs[j];
221 endfor;
222
223 bstring[13] := "Free Square";
224
225 bbcard[bb] := image(
226 draw bbcard[0];
227 for i = 1 upto 25:
228 label(breaktowidth(bstring[i], 1.5cm, 11pt), bpos[i]);
229 endfor;
230 );
231 endfor;
232
233 beginfig(bsno);
234 picture p;
235 p := ("Bullshit Bingo" infont defaultfont scaled 2)
236 shifted ((offset, 3offset)+2.25*ulcorner bbcard[0]);
237
238 fill ((llcorner p)..(ulcorner p).. tension 2 .. (urcorner p)..
239 (lrcorner p) .. tension 2 .. cycle)
240 withcolor .5 white;
241 draw p withcolor white;
242
243 draw ("Advanced Playing Card" infont defaultfont scaled 1.2)
244 shifted ((lrcorner p) + (10pt, 6pt));
245 draw ("Stay awake!" infont defaultfont)
246 shifted ((lrcorner p) + (10pt, -14pt));
247 draw ("Watch for duplicates!" infont defaultfont)
248 shifted ((lrcorner p) + (10pt, -25pt));
249 draw ("Have fun!" infont defaultfont)
250 shifted ((lrcorner p) + (10pt, -36pt));
251
252 draw bbcard[1] shifted (offset, offset);
253 draw bbcard[2] shifted ((1.25offset, offset)+lrcorner bbcard[0]);
254 draw bbcard[3] shifted ((1.25offset, 2offset)+urcorner bbcard[0]);
255 draw bbcard[4] shifted ((offset, 2offset)+ulcorner bbcard[0]);
256 endfig;
257
258 if known nocards:
259 endfor;
260 fi;
261
262 end;