Bitcoin Forum
May 10, 2024, 03:05:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 »
  Print  
Author Topic: Coinroll.it - Dice rolling game | Instant bets | Off-the-chain | 1% House edge  (Read 81487 times)
Scrat Acorns (OP)
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250



View Profile
May 18, 2013, 05:20:17 PM
 #41

I won 150 bets and lost 6...  I bet on below 64000, which has a 1 in 1000 loss rate...  huh?

Your math is wrong. Below 64000 has a 2.34% loss rate.
1715310342
Hero Member
*
Offline Offline

Posts: 1715310342

View Profile Personal Message (Offline)

Ignore
1715310342
Reply with quote  #2

1715310342
Report to moderator
1715310342
Hero Member
*
Offline Offline

Posts: 1715310342

View Profile Personal Message (Offline)

Ignore
1715310342
Reply with quote  #2

1715310342
Report to moderator
1715310342
Hero Member
*
Offline Offline

Posts: 1715310342

View Profile Personal Message (Offline)

Ignore
1715310342
Reply with quote  #2

1715310342
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715310342
Hero Member
*
Offline Offline

Posts: 1715310342

View Profile Personal Message (Offline)

Ignore
1715310342
Reply with quote  #2

1715310342
Report to moderator
Hfleer
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


Changing avatars is currently not possible.


View Profile
May 18, 2013, 05:32:33 PM
 #42

Coinroll is a new dice rolling game with a few interesting features:

A house edge of only 1%

Unconfirmed deposits
We accept unconfirmed transactions. You can begin playing instantly - no registration is required.

Deferred withdrawals
You can choose to have your winnings sent to an address once your deposit has cleared. Staying on the website while your transaction is queued is not necessary.

Instant bets
Bets are off-the-chain and are processed instantly while still being provably fair. As such, you can bet as low as 0.00001 BTC.

API
An easy-to-use interface is available for those who would like to use Coinroll from the command line or integrate it into their projects.

Custom games
While a few preset games are available, you can set a target number from 1 to 64000 and your win odds and multiplier will be calculated accordingly.

Here's an example of a bet. More information on provability and database dumps are available here.

A note on withdrawals: A 0.0005 miner's fee is added to all withdrawals, so the minimum balance you can withdraw from is 0.00050001 (it would result to a transaction of 1 satoshi plus the minumum fee). The fee is automatically factored into the amount when you click on Withdraw.

Betting limits will slowly be increased over the coming weeks.

Come check it out at https://coinroll.it

I won 150 bets and lost 6...  I bet on below 64000, which has a 1 in 1000 loss rate...  huh?

I just rolled 200x this bet and lost 4 times won 196, it does show you the win percentage as 97.7% in the game select area.

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
smeagol
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
May 18, 2013, 06:03:27 PM
 #43

I won 150 bets and lost 6...  I bet on below 64000, which has a 1 in 1000 loss rate...  huh?

Your math is wrong. Below 64000 has a 2.34% loss rate.

Ahhh!  MY MATH!  oops... lol
lost 60 bitcoins...
Hfleer
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


Changing avatars is currently not possible.


View Profile
May 18, 2013, 07:48:57 PM
 #44

I won 150 bets and lost 6...  I bet on below 64000, which has a 1 in 1000 loss rate...  huh?

Your math is wrong. Below 64000 has a 2.34% loss rate.

Ahhh!  MY MATH!  oops... lol
lost 60 bitcoins...

ouch

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
Scrat Acorns (OP)
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250



View Profile
May 18, 2013, 07:51:38 PM
 #45

ouch

He is trollin'.
smeagol
Legendary
*
Offline Offline

Activity: 1008
Merit: 1005



View Profile
May 18, 2013, 08:26:20 PM
 #46


oops! sorry! I meant 0.6 BTC... not as much of a loss but still a lot...
Scrat Acorns (OP)
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250



View Profile
May 18, 2013, 11:20:42 PM
Last edit: May 19, 2013, 04:01:10 PM by Scrat Acorns
 #47

Added a live view of all bets being played at https://coinroll.it/bets
Hfleer
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


Changing avatars is currently not possible.


View Profile
May 19, 2013, 11:13:02 AM
 #48

Added a live of view of all bets being played at https://coinroll.it/bets
Over half-million bets and counting, nice.

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▓▓▓▓▓  BIT-X.comvvvvvvvvvvvvvvi
→ CREATE ACCOUNT 
▓▓▓▓▓
█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
Zaih
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


View Profile
May 19, 2013, 11:18:46 AM
 #49

Added a live of view of all bets being played at https://coinroll.it/bets
Over half-million bets and counting, nice.

Very nice. Smiley Grats
Namworld
Hero Member
*****
Offline Offline

Activity: 745
Merit: 501



View Profile
May 19, 2013, 09:58:54 PM
 #50

The live bets feed page is very neat.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
May 20, 2013, 03:31:34 AM
 #51

I was asked to audit the provable fairness, and did so.

I found a problem, though I don't think it's important, and can be corrected.

Take https://coinroll.it/bet/0024cd8925bf for instance.  It says the nonce was 41988, that the lucky number was 41982, and that I can verify this by running:

Code:
$ echo -n '090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65:41988' | openssl dgst -sha512 -hmac 'mEL0R7en4QQZtJpHkath9YtvEed2YbzrOAQrIkTkd1ZmX5YNoPprlWf6XeTFoQZD' | sed 's/^.* //' | cut -c1-4 | xargs -I{} printf "%d\n" 0x{}
56785

However, as you can see, that gives 56785 as the lucky number.  If I use 41987 as the nonce, I get the correct lucky number:

Code:
$ echo -n '090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65:41987' | openssl dgst -sha512 -hmac 'mEL0R7en4QQZtJpHkath9YtvEed2YbzrOAQrIkTkd1ZmX5YNoPprlWf6XeTFoQZD' | sed 's/^.* //' | cut -c1-4 | xargs -I{} printf "%d\n" 0x{}
41982

I think all that's happened is that for a few thousand bets the database recorded the wrong nonce.  If we look at the database dump, we see records for nonces 41985, 41986, 41988 (twice), 41989, etc.  41987 is missing, and 41988 was recorded twice.  https://coinroll.it/bet/abd8a11aba66 is the other time it was used.

Here are the two verification screens for the two bets.  Notice that the shell commands are identical in the two cases, but the lucky numbers they are meant to produce are different...





Edit: note that sometimes the reported nonce is off by as much as 4:

Code:
bet "04ea204f8cb5" nonce 42290 should be 42286 (off by 4)
bet "c56d77775b9e" nonce 42290 should be 42287 (off by 3)
bet "9e2e44e570c0" nonce 42290 should be 42288 (off by 2)
bet "2ec74cf218a1" nonce 42290 should be 42289 (off by 1)

bet "70cb835c740f" nonce 42299 should be 42296 (off by 3)
bet "de7c0b0ceb1d" nonce 42299 should be 42297 (off by 2)
bet "715dd2d635ee" nonce 42299 should be 42298 (off by 1)

Edit2: Note also that none of this seems to affect the fairness.  It does just seem to be an issue with the archiving of the bets, specifically the nonces.  The stored lucky number and result is correct, and presumably so was the payout.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Namworld
Hero Member
*****
Offline Offline

Activity: 745
Merit: 501



View Profile
May 20, 2013, 05:24:58 AM
Last edit: May 20, 2013, 05:40:54 AM by Namworld
 #52

Short story:
Only the bets archive/history seems to have the wrong nonces (repeated) as viewed in archive or on the website. The lucky numbers appear to be the one that would have been generated with the correct nonce (not skipped like on the archived bets).

Ex:
https://coinroll.it/bet/26c991a300e6
Shows nonce 41875 & lucky number 45957 (Which can be generated with nonce 41874)
https://coinroll.it/bet/916f4107ff33
Shows nonce 41875 & lucky number 25074 (Which can be generated with nonce 41875)

Well that is an issue if historic bets are to be verified with a script. Although if it only impacts the archive, correcting the issue should be easy.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
May 20, 2013, 05:50:04 AM
 #53

Well that is an issue if historic bets are to be verified with a script. Although if it only impacts the archive, correcting the issue should be easy.

Yes.  I tested them all, and no nonce is off by more than 4, so it's easy to find out what the correct nonce should be.

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Scrat Acorns (OP)
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250



View Profile
May 20, 2013, 08:51:23 AM
Last edit: May 20, 2013, 08:29:08 PM by Scrat Acorns
 #54

Thank you for pointing this out dooglus. I will investigate.

As you said, this only affects the archiving of the bets since it is a separate routine.

Edit: This is a concurrency bug. The lucky number calculation correctly uses the atomically incremented nonce while the archiving operation increments it by itself. This will be fixed.
BigBitz
Hero Member
*****
Offline Offline

Activity: 672
Merit: 501



View Profile
May 20, 2013, 04:31:08 PM
 #55

Wow.

Just lost 15 in a row of the 25% chance win bet.

Brutal.

No BTC left  Shocked

Tips BTC --> 1BS2sYvy3T1cpNhie6CVFMcUrHa84a8mPa <-- Thanks! || Tips [LTC] --> LaytYJNCha7z7zcws5a2o2GWWjvWfDCGkr <--
Mooshire
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250



View Profile
May 20, 2013, 04:50:07 PM
 #56

If you're like me and what even payouts instead of even odds:

Less than 32440 for 2x payout

Less than 21626 for 3x payout

Less than 16220 for 4x payout

dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
May 20, 2013, 07:02:11 PM
 #57

Wow.

Just lost 15 in a row of the 25% chance win bet.

Brutal.

No BTC left  Shocked

That happens 1.33% of the time, so it's not that rare:

Code:
>>> (0.75**15) * 100
1.3363461010158062

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
BigBitz
Hero Member
*****
Offline Offline

Activity: 672
Merit: 501



View Profile
May 20, 2013, 08:10:38 PM
 #58

Wow.

Just lost 15 in a row of the 25% chance win bet.

Brutal.

No BTC left  Shocked

That happens 1.33% of the time, so it's not that rare:

Code:
>>> (0.75**15) * 100
1.3363461010158062
lol, thanks man. Lost my last bit coins  Sad

Tips BTC --> 1BS2sYvy3T1cpNhie6CVFMcUrHa84a8mPa <-- Thanks! || Tips [LTC] --> LaytYJNCha7z7zcws5a2o2GWWjvWfDCGkr <--
Scrat Acorns (OP)
Sr. Member
****
Offline Offline

Activity: 293
Merit: 250



View Profile
May 20, 2013, 09:19:49 PM
 #59

The messed up nonces have been fixed.
dooglus
Legendary
*
Offline Offline

Activity: 2940
Merit: 1330



View Profile
May 20, 2013, 09:38:35 PM
 #60

The messed up nonces have been fixed.

Is the db dump fixed now too?

Quote
From Wikipedia, the free encyclopedia

Nonce may refer to:

Cryptographic nonce, a number or bit string used only once, in security engineering

Nonce (slang), a British and Australian slang term for a sex offender, usually a child sexual abuser

Being British, 'nonce' always seems like unfortunate terminology...

Just-Dice                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   Play or Invest                 ██             
          ██████████         
      ██████████████████     
  ██████████████████████████ 
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
    ██████████████████████   
        ██████████████       
            ██████           
   1% House Edge
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!