I'm thinking on a lottery game based on blockchain. The game function as following;
*When paying for the lotto ticket the user have to enter a three digits numbers
of his choice*
-a bot take the hash of the first block mined after a time fixed for the draw.
ex: block: "333000"
000000000000000008360c20a2ceff91cc8c4f357932377f48659b37bb86c759
-the letters as well as the first zeros are puted out of the block hash
-----------------8360 20 2 91 8 4 357932377 48659 37 86 759 (caceffcccffbbbc)
-the serie of digits are sequenced two by two.
83 60 20 29 18 43 57 93 23 77 48 65 93 78 67 59
-for the "lotto game" 'six numbers +bonus' 01 to 49,
for the tens, we operate referring to the correspondence, 5-for zero , 6 for one , 7 for two , 8 for three , 9 for four ..
so from Right to Left we draw the lotto numbers:
|| 09 , 16 , 28 , 43 ,
15,
48 - +b: 22 ||
"a little video animation would make this very great"
*after draw the lotto numbers , it's time for draw for a lottery game for the players who's was played the lotto.
-we make addition of all numbers formed by two , 83 + 60 +20 + 29 .
. . . = 913 multiplied by the number of tickets , ex:10197 x 913 =
"9309861"
-now we have the reference number for the draw; 9309861.
number of tickets 10197, take six digits from the left ; 236020
: (10197: 5digits+1)
for a user who has put |073| in the three personal digits and has as a ticket number "849" for example; (849+236020) x 073 =
17291437
-opering by transposition to the reference number,
9309861
1 |7291437
-the more nearest is the winner , a hit less than ten of difference win a special prize, a exact hit win a jackpot.
-in a case of placed equal winners for ranking,
(1|7291437) -> (7291437+1)
Signed message ::©