Post
Topic
Board Marketplace
Re: probiwon.com: New gambling shooting game with 94.2% return
by
dissipate
on 27/02/2011, 23:58:27 UTC
A quick question. Could you show some pseudocode of how you handle the bets? Does the acceptor plays any role in the odds?

After creation of a new addresses pair (your address + acceptor address) site generates random secret, shows sha256(secret) to you and waits for your bet. After bet is accepted and game played new random secret generated immediately and site waits bet again.


I haven't played this yet, and I'm curious how this hash verification works.  If I understand correctly, you display the sha256 of some unique data, AKA "secret" before the player places his bet.  Then the player bets whatever amount they like up to 15 BTC, and is shown the ring that was hit, along with the "secret" used.  While it is easy to verify the secret matches the hash, I don't understand is how the "secret" relates to which ring is hit, as that would be the most important part to verify that the game is fair.

It determine coordinates of the hit by getting first 4 bytes from this secret number. For example:

hash of secret: 4d1cb8895e10ed6f6dfc0013049df07f7e9794fd716b3b8e509f6581f2b934e3

After accepting your bet you will see secret and coords of hit:

secret: 0d37cc844521dbfdb92399be793a1bc3
x=0.05162127107652399481 (d37 / ffff)
y=0.79890135042343785763 (cc84 / ffff)


That's all well and good, but how do we know the secret was randomly and fairly generated?