Roulette | Coin Flip Duels
BitDouble generates «secret» and coin flip result on server for each user session. Users does not get the secret until duel is finished, but we give a hash of result with secret, so when duel is finished everyone can check that we did not change duel outcome. Before user starts a duel, he can refresh hash and get new hash any times he wants.
After user starts a duel, nobody sees the result or secret, but everyone can see a hash of duel. When duel finishes and winner gets revenue, BitDouble opens game secret and everyone can check it.
You can use our simple JS script to check the lucky numbers, or code in yourself in any other language you want.
game_result = "H"; // or "T" duel_hash = hash("sha256", game_result + "-" + secret);