in reply to "Biochem BINGO" or "Noob Seeks Zen Thrashing"

A couple of general comments for your enlightenment.

Modelling a BINGO card

Well. A BINGO card is basically five columns with B-I-N-G-O across the top, and columns of numbers, choose five randomly from 1-15 under B, and so forth to 61-75 under O.

Once you know that, lots of the code you've got here can be vastly simplified. You could call a module to set the values of each card, then print out the artwork for each card. The main line program would be a dozen lines long.

Anyway, good work posting this code -- read all of the replies carefully, you should learn a great deal, as I have for the four years that I've been here. Good luck.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re: "Biochem BINGO" or "Noob Seeks Zen Thrashing"

Replies are listed 'Best First'.
Re^2: "Biochem BINGO" or "Noob Seeks Zen Thrashing"
by NamfFohyr (Scribe) on Dec 12, 2005 at 18:27 UTC
    Thanks Alex, for the encouragement.

    I could have finished much more quickly if I just had to write cards that look like BINGO cards. My challenge was to, given a call sequence beforehand, make a set of BINGO cards with a known number of winners. My solution IS definately inelegant, but I had to ensure 120 losing cards and 10 winners.

    Just trying to defend *SOME* of the complexity!

    ry

    "I'm not afraid of Al Quaeda. I'm afraid of Al Cracker." -Chris Rock