Posted 28 December 2010 - 07:59 PM
Just a bit of an update, I've finished most of the administrative "paperwork" stuff (new databases, group fields, settings, etc), during which I've been contemplating the best way to handle the actual lottery stuff. Here is what I have so far:
Settings allow the admin to choose the number of "balls" and the number of digits per ball. Another setting determines if a winner is needed or if the pot can rollover to the next lotto. This should make for a lottery system close to how they are run here in the states (and I suspect elsewhere). The first 2 settings are good so tiny boards all the way up to huge boards can run effective lottos. So, for a board where maybe 25 total tickets will be sold per lotto, the admin might choose 2 balls and 1 digit per ball. That way there are (10 choose 2) possible winning combinations (45 total), so there is about a 50% chance of someone winning. Or if a board had thousands of tickets, the admin could go with 2 balls and 2 digits (4500 possibilities).
Its slow going, what with me working full time during the holidays and 2 mini-vacations for xmas and new years, but hopefully I can at least have something installed here before i go back to school.
DogPatch Was Here :D