Scott Francis Baker (muerte) wrote,
Scott Francis Baker
muerte

Dinosaurs nostrils get relocated

Ok I'm a huge geek... At work we play SAFTY bingo. So they give us "bingo" cards with the letters b-i-n-g-o replaced with s-a-f-t-y. Get it? Pretty clever huh? So it works like this, everyday we go without an on the job accident they email out another number. If you get a bingo you win $50 and then they start over. Well there are 12 people or so in my department and no one really cares, so no one really plays. We all just put our cards up on the wall and one guy plays all of them. So if any of our department cards win we'll split the $50 and get donuts for the whole department for a week or something.

Well even that was getting too much of a pain in the ass to keep up with. So I spent the last 3 hours or so writing a little perl script that will play for us. All I have to do is enter all the numbers on each card (in order), and then enter the numbers that have been called and run the script. It will spit through them all, and printout a visual display of the card with the numbers called displayed in red. Then it checks for the various games: regular bingo, X, four corners, and blackout. If it sees a match on any of the cards it spits out that we won. Pretty cool actually.

Numbers Called:
Y-69 F-42 S-14 S-1 A-18 T-54 S-13 Y-71 F-37 Y-75
T-57 A-28 F-44 A-17 A-16 S-9 Y-63 T-60 A-21 A-19
Y-70 S-10 Y-74 T-48 A-30 T-46 Y-66 T-52 A-29 Y-61
S-3 S-7 A-27 T-53 T-49 A-23 Y-64 A-24 Y-62 F-34
S-4 S-6 F-40 A-25 T-55 S-5 F-34 S-4 S-2 Y-68
F-43 T-51 A-22 A-26 A-24 Y-62 F-36 Y-73 T-58 F-35
Y-67 T-47 T-59 S-15 A-20 F-45

Card #1
+-----+-----+-----+-----+-----+
|  S  |  A  |  F  |  T  |  Y  |
+-----+-----+-----+-----+-----+
| *2  | *30 | 41  | *58 | *74 |
+-----+-----+-----+-----+-----+
| 12  | *19 | *44 | *47 | *70 |
+-----+-----+-----+-----+-----+
| *3  | *24 | FR  | *48 | *67 |
+-----+-----+-----+-----+-----+
| 11  | *27 | 38  | *60 | *75 |
+-----+-----+-----+-----+-----+
| *15 | *18 | *42 | *54 | *64 |
+-----+-----+-----+-----+-----+
** Bingo! Row: 3 **
** We got an X **
** Corners! **

Card #2
+-----+-----+-----+-----+-----+
|  S  |  A  |  F  |  T  |  Y  |
+-----+-----+-----+-----+-----+
| 11  | *29 | *44 | *55 | *61 |
+-----+-----+-----+-----+-----+
| *10 | *28 | 39  | *59 | 65  |
+-----+-----+-----+-----+-----+
| *15 | *17 | FR  | *54 | 72  |
+-----+-----+-----+-----+-----+
|  8  | *16 | *40 | *57 | *71 |
+-----+-----+-----+-----+-----+
| 12  | *30 | *37 | 50  | *75 |
+-----+-----+-----+-----+-----+
** Bingo! Column: A **
Subscribe
  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 6 comments