Created
June 30, 2014 15:24
-
-
Save saltybeagle/77c5cd5e8f6f6fc456a7 to your computer and use it in GitHub Desktop.
2008 Debate Bingo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$original_items = array( | |
'Alaska', | |
'Tax Relief', | |
'Maritime Border', | |
'Track', | |
'Sexism', | |
'Maverick', | |
'Bridge to Nowhere', | |
'God', | |
'Glass Ceiling', | |
'Reformer', | |
'Russia', | |
'Putin', | |
'Hockey Mom', | |
'Osama Bin Laden', | |
'Job Creation', | |
'Ummm', | |
'9-11', | |
'Lipstick', | |
'Terrorists', | |
'Earmarks', | |
'Special Needs', | |
'Trade Mission', | |
'Family', | |
'Hillary Clinton', | |
); | |
for($h=0;$h<10;$h++) { | |
$items = $original_items; | |
shuffle($items); | |
echo '<table style="font-family:\'Meta Book\';page-break-after:always;display:block;border-collapse:collapse;">'; | |
$item_counter = 0; | |
for($i=0;$i<5;$i++) { | |
echo '<tr>'; | |
for ($j=0;$j<5;$j++) { | |
echo '<td style="width:120px;height:120px;border:1px solid;text-align:center;vertical-align:center;position:relative;">'; | |
if ($item_counter == 12) { | |
// echo '<span style="position:absolute;margin-top:-65px;margin-left:-22px;">FREE</span>'; | |
echo 'FREE'; | |
} else { | |
echo array_pop($items); | |
} | |
$item_counter++; | |
echo '</td>'; | |
} | |
echo '</tr>'; | |
} | |
echo '</table>'; | |
echo '<br />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this cleaning up my hard drive. The 2008 presidential debate bingo card!