Scrat Acorns (OP)
|
|
May 20, 2013, 09:40:15 PM |
|
Is the db dump fixed now too?
Yes. Being British, 'nonce' always seems like unfortunate terminology...
Dammit, I always thought there was something wrong with that word.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 20, 2013, 09:48:05 PM |
|
Is the db dump fixed now too?
Yes. The fixed rows are now showing a decimal place for the offending nonces: old: "0022382334fe","cb4a-d75e-142d",1368486703517.0,41881,5890,49189,true,319,"090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65" new: "0022382334fe","cb4a-d75e-142d",1368486703517.0,41880.0,5890,49189,true,319,"090de7a9a363bc41c992ec000f77ffe6692155308ae5020a4e1e58c4222a1b65" So '41881' changed to '41880.0'. Can we get rid of the decimal '.0'?
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
Scrat Acorns (OP)
|
|
May 20, 2013, 10:05:11 PM |
|
So '41881' changed to '41880.0'. Can we get rid of the decimal '.0'?
Should be fine now.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 20, 2013, 10:15:30 PM |
|
Should be fine now.
Yes, it's good now. I wrote a script that verifies the whole db: $ ./coinroll.py missing secret for 05-20-2013 662354 right and 0 wrong $ It can't verify the bets from today, since the secret isn't public yet. But it can verify all the rest, and they're all fine. Here's the script: #!/usr/bin/env python
# verify all coinroll.it bets from their db dump # # 1. download secrets and bets from https://coinroll.it/verification # 2. bunzip2 bets.csv.bz2 # 3. run this script in the same folder
import hashlib, hmac, string, time
def hash(txid, nonce, secret): return int(hmac.new(secret, "%s:%s" % (txid, nonce), hashlib.sha512).hexdigest()[:4],16)
secrets = {}
for line in open('secrets.txt').readlines(): (date, secret) = string.split(line[:-1]) secrets[date] = secret
fp = open("bets.csv") fp.readline() # throw away first line - it's the field names
missing = {} # note which dates we don't know the secrets for wrong = 0 # count errors right = 0 # count successes
while True: line = fp.readline() if (not line): break (betid, user, stamp, nonce, lucky, target, win, diff, txid) = string.split(line[:-1], ',')
nonce = string.atoi(nonce) lucky = string.atoi(lucky) txid = string.split(txid, '"')[1] stamp = string.atof(stamp)/1000 date = time.strftime('%m-%d-%Y', time.gmtime(stamp))
if not secrets.has_key(date): missing[date] = 1 continue secret = secrets[date] calc = hash(txid, nonce, secret)
if calc != lucky: wrong += 1 found = False for off in range(1,5): if lucky == hash(txid, nonce - off, secret): target = string.atoi(target) print "bet %s txid %s:%-5d should be %-5d (off by %d)" % (betid, txid, nonce, nonce - off, off) found = True break if (not found): print "%s lucky number is wrong (%5d != %5d): %s" % (betid, lucky, calc, time.ctime(stamp)) else: right += 1
for i in missing.keys(): print "missing secret for", i
print "%d right and %d wrong" % (right, wrong)
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
Namworld
|
|
May 21, 2013, 04:58:37 AM |
|
Thank you for releasing this script. As promised, I tipped you.
|
|
|
|
Zaih
|
|
May 21, 2013, 05:03:03 AM |
|
Awesome script. Nicely done Doog!
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 21, 2013, 05:23:59 AM |
|
Thank you for releasing this script. As promised, I tipped you.
Thanks. I'll let you know if I ever get around to making browser extensions to do this automatically for each user individually.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
Pokerfan
|
|
May 21, 2013, 09:12:27 AM |
|
I confirm that I have received the prize from Scrat Acorns. (see https://bitcointalk.org/index.php?topic=197242.0) I wish Coinroll.it to become a big success, he has built a great site that will beat all the inferior competitors! SatoshiDice should be very afraid! I will personally be using Coinroll.it when demonstrating bitcoin to new people. Usually, I give them a few mBTCs, so there's not enough money to buy anything, but they can donate or gamble.
|
|
|
|
Namworld
|
|
May 21, 2013, 02:22:34 PM |
|
Thank you for releasing this script. As promised, I tipped you.
Thanks. I'll let you know if I ever get around to making browser extensions to do this automatically for each user individually. Would definitely pay to see that coming to fruition.
|
|
|
|
scalar33
Member
Offline
Activity: 65
Merit: 10
|
|
May 22, 2013, 12:25:48 AM |
|
I confirm that I have received the prize from Scrat Acorns. (see https://bitcointalk.org/index.php?topic=197242.0) I wish Coinroll.it to become a big success, he has built a great site that will beat all the inferior competitors! SatoshiDice should be very afraid! I will personally be using Coinroll.it when demonstrating bitcoin to new people. Usually, I give them a few mBTCs, so there's not enough money to buy anything, but they can donate or gamble. Grats to you, and other winners.
|
62 Posts BTC: 12UByjpZgQMV1j8Hg8KQuztGbmfb2aD5HM
|
|
|
Scrat Acorns (OP)
|
|
May 23, 2013, 04:52:03 PM |
|
Some changes: - Multipliers now have 5 significant digits
- You can see a list of your transactions by clicking the paper icon next to the Withdraw button
|
|
|
|
hasher87
|
|
May 24, 2013, 05:49:15 AM |
|
One thing i like about coinroll is the instant result as well as draw number is varied from 0 - 64000, as compared to primedice, which is 0.00 - 100.00 (equivalent to 10000) and yes, i lost a few amount of btc at first, judging at the handy profit statement at the right side, previously it was -0.001 thingy, and finally i got it all back to a profit of 0.019 Is there a way for me to import all of my previous bets so that i can make an analysis of my betting?
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 24, 2013, 05:56:31 AM |
|
One thing i like about coinroll is the instant result as well as draw number is varied from 0 - 64000, as compared to primedice, which is 0.00 - 100.00 (equivalent to 10000)
Why do you prefer the 0-65535 (note that's the range they draw from - 64000 is the highest you're allowed to pick, but the site can pick higher) range of coinroll to the 0-100% range of primedice? They seem pretty much equivalent to me (except than everyone knows 25% is a quarter, whereas it takes a while to work out whether 16500 is more or less than a quarter of 65536). ie. percentages are more intuitive for those of us who tend to work in base 10 (and I think that's everyone except Luke-jr isn't it?)
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
GCInc.
|
|
May 24, 2013, 09:53:51 AM |
|
Why do you prefer the 0-65535 (note that's the range they draw from - 64000 is the highest you're allowed to pick, but the site can pick higher) range of coinroll to the 0-100% range of primedice?
Tuning in here, as I have played both and also much prefer Coinroll over Primedice. It was surprising to find out this preference nearly instantly after landing on the site ... when analyzing the reasons, I find the Coinroll site slightly more usable and aesthetically appealing, but the main reason may be that - We have been conditioned to the satisfaction created by the strange 65535 range by Satoshidice (and bittbattle.me for me, which I have played a few hundred rounds)! I also am in profit with Coinroll, while Primedice turned an awful losing streak right in the start. There we go, the preference not really being a mystery after breaking it down to the elements
|
|
|
|
|
Scrat Acorns (OP)
|
|
May 24, 2013, 11:15:57 PM Last edit: May 24, 2013, 11:26:03 PM by Scrat Acorns |
|
New stuff!
Added 3 new buttons
2x Doubles your existing bet. This might be useful for people who play martingale.
Max Places the maximum bet allowed by your balance and the game you're playing.
Set Odds Pops a slider that you can use to make arbitrary games by just setting your desired winning odds.
|
|
|
|
Scrat Acorns (OP)
|
|
May 24, 2013, 11:25:12 PM |
|
Lots of lucky players in the last 24 hours. Why do you prefer the 0-65535 (note that's the range they draw from - 64000 is the highest you're allowed to pick, but the site can pick higher) range of coinroll to the 0-100% range of primedice?
They seem pretty much equivalent to me (except than everyone knows 25% is a quarter, whereas it takes a while to work out whether 16500 is more or less than a quarter of 65536). ie. percentages are more intuitive for those of us who tend to work in base 10 (and I think that's everyone except Luke-jr isn't it?)
Hopefully with the slider I've added it will be much easier to set arbitrary odds. PS: Your script is awesome.
|
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 25, 2013, 12:56:25 AM |
|
New stuff!
Added 3 new buttons
2x Doubles your existing bet. This might be useful for people who play martingale.
Here's a suggestion: as well as '2x', how about a 'martingale' button, which multiplies your bet by whatever it needs to be multiplied by to cover previous losses and still make the same profit when you eventually win... When you're playing a game which pays out 2x, the button should multiply your bet by 2. But when you're playing a game with a different multiplier, you need to multiply your bet by a different amount to effectively play the martingale strategy. When the payout multiplier is N, you need to multiply your bet by N/(N-1) each time to get the same profit when you win. So when you're playing the 2x (50/50) game, you multiply your bet by 2/(2-1) = 2/1 = 2 each time (traditional martingale). But if you're playing a game that pays out 11x when you win, you only need to multiply your bet by 11/(11-1) = 11/10 = 1.1 each time. For example, you bet 1 BTC on the 11x payout game. If you win, you get 11 BTC, for a profit of 10 BTC. If you lose, multiply your bet by 1.1 and bet 1.1 BTC. If you win, you get 12.1 BTC, for a profit of 12.1 - (1 + 1.1) = 12.1 - 2.1 = 10 BTC. So you get the same profit if you multiply your bet by 1.1 in that case. I'm drunk. Can you tell? But I think my maths is right.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 25, 2013, 01:01:11 AM |
|
PS: Your script is awesome.
Thanks. I just ran it again using the latest db dump and secrets. It said: missing secret for 05-25-2013 missing secret for 05-24-2013 884904 right and 0 wrong I guess I caught it at a bad time when there's more than 24 hours worth of bets which haven't had their secrets revealed yet. In general though, why wouldn't you reveal each day's secret the moment you stop using it? I don't see any need to wait once the secret is no longer being used.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
dooglus
Legendary
Offline
Activity: 2940
Merit: 1330
|
|
May 25, 2013, 03:50:34 AM |
|
Another thing... I've seen a few people with coinroll ads in their signature, and they've all been very hard to read with the dark forum theme I use: I expect they're using formatting code that you supply. If so, you should have it specify both the foreground and background colours. Unless you want it to be white-on-white and hard to read.
|
Just-Dice | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | Play or Invest | ██ ██████████ ██████████████████ ██████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████ ██████████████ ██████ | 1% House Edge |
|
|
|
|