I am working on the workflow of a online lottery where parts of income will build up a fund that will fund bitcoins projects.
The idea is to create in such way:
1. user register wallet ID
2. user picks for example x numbers between 1-x. (lets assume the numbers to choose is 1 -9)
3. The site/software selects the last number randomly and adding it to the numbers user picked in step 2. (safety feature).
4. registration of e-mail (is not stored with the wallet ID)
5. User pays for the tickets choosen with BTC and are participant in the drawing.
6. User receives his selected numbers on e-mail.
THE DRAWING
The site will automaticly draw the winner wallet ID between the participants wallets ID and draw the randomly numbers. If a wallet ID and numbers are matched you have a lucky winner. The script will draw X times regards to pricelist set up. If a few winners or none There will be a second drawing round but the prizes get smaller, the difference are added to a weekly drawing. This will go on until there is selected a winner regards to the price scheme set up (this can be many ways). prizepayment are done automaticly.
Admin can set opp prices in first round (% of funds from bought tickets), and % of the funds from bought tickets in second round if not selected. If a few or none winners in first round, the rest % is added to the second drawing minus a % that will be sent to a weekly drawing. If no winners in weekly drawing it will go to the next week drawing and so on.
Example:
1. prize 20% of income from sold tickets.
2. 10% of income from sold tickets.
3. 5 % of income from sold tickets.
4 -x prize: 65% of income from tickets are distrubeted in prices of for example 1 BTC (amount set by admin).
There is three calculations regards to income/revenue of sold lottery tickets: % Prize money, % fee that goes to bitcoin fund, and a % fee to run and develope the site further.
Anyone having the guts to try to set up the programming logic for such a automatic drawing? Drop your suggestion here or send a PMGood luck
and I might use your suggestion in this idealistic bitcoin lottery that will have the goal to fund small and big bitcoins projects that take this technology further.