Bitcoin Forum

Economy => Games and rounds => Topic started by: Scrat Acorns on May 06, 2013, 09:01:49 PM



Title: 5 BTC giveaway! (Ended)
Post by: Scrat Acorns on May 06, 2013, 09:01:49 PM
Coinroll.it (https://coinroll.it/?r=3) (Forum thread (https://bitcointalk.org/index.php?topic=191176.0)) is sponsoring a 5 BTC giveaway to lucky players.

All you have to do is play one game on our website (https://coinroll.it/?r=3) - it can be as low as 0.00001 BTC. The amount of bets you make doesn't matter, and neither does the number that you rolled. What you need to do then is paste the bet ID of one of these bets as a reply to this thread.

The 3 winners will be chosen in 2 weeks using the following procedure:

We have chosen a random 12 digit hex ID in advance. The SHA256 hash of that string (plus extra padding to avoid brute forcing) is
Code:
f93e0d55b98e61dddfa4d3aae8204cfa727c909af15ef81ccdda9ac8313ceca4

The ID will be revealed in 2 weeks - the 21st of May.

The 3 winners are those with a bet ID which has the smallest modular distance to our random ID.


The modular distance is defined as
min((a - b) mod 248, (b - a) mod 248)
where a, b are 48bit integer representations of the hex IDs


Prize pool:
Winner: 3 BTC
2nd and 3rd: 1 BTC each

Winners will be asked to prove that they actually played the game by either signing a message from one of the originating addresses or performing an action on the website while logged in.


Why the modular distance? Why wouldn't a regular subtraction do?
If we used the absolute value of (a - b) instead then bets wouldn't have a uniform distribution of probability.

_______________________________________________________________

It's over!

The ID was e889acf0504e

The hashed message was
Code:
e889acf0504e_randompadding#gJ7n39u5

Script that was used (https://gist.github.com/anonymous/e0528c363ab21ab02f94)

The output (https://gist.github.com/anonymous/6681e1bfe0b0cdb10eb4)


Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC


Title: Re: 5 BTC giveaway!
Post by: roomservice on May 06, 2013, 09:11:18 PM
Really awesome gambling site.

Just gave it a try:
358507d91c67


Title: Re: 5 BTC giveaway!
Post by: superduh on May 06, 2013, 09:16:36 PM
looks nice
better than spamming the chain!


Title: Re: 5 BTC giveaway!
Post by: malevolent on May 06, 2013, 10:48:17 PM
345fad19b419 (https://coinroll.it/bet/345fad19b419)


started with 0.003, got to 0.02006871 now
but I expect to lose it sooner or later

glad I didn't deposit more like some satoshi players did/do

0.009 now ;]


Title: Re: 5 BTC giveaway!
Post by: durrrr on May 06, 2013, 11:19:08 PM
b57111a357c2

nice site :)


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 06, 2013, 11:50:12 PM
6fbe3437db32 (https://coinroll.it/bet/6fbe3437db32)

Smooth looking site.


Title: Re: 5 BTC giveaway!
Post by: ThickAsThieves on May 06, 2013, 11:54:36 PM
Had fun losing .1 btc!

74392d13bf0d


Title: Re: 5 BTC giveaway!
Post by: CurbsideProphet on May 07, 2013, 02:59:08 AM
04d496980028


Title: Re: 5 BTC giveaway!
Post by: Zaih on May 07, 2013, 06:22:55 AM
f96096ca2894


GL  ;D


Title: Re: 5 BTC giveaway!
Post by: BenTuras on May 07, 2013, 07:16:29 AM
nice website, instant access, instant bet result, no fuzz
and the bonus: no blockchain spamming!
13fa3c093331

@Scrat Acorns: Do all my bets participate in the draw, or just the one I mentioned here ?


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 07, 2013, 08:42:03 AM
@Scrat Acorns: Do all my bets participate in the draw, or just the one I mentioned here ?

Just the one you posted here.


Title: Re: 5 BTC giveaway!
Post by: BenTuras on May 07, 2013, 08:50:11 AM
@Scrat Acorns: Do all my bets participate in the draw, or just the one I mentioned here ?

Just the one you posted here.
Heck! You want me to publicly admit I am a gambler ?! *grins*


Title: Re: 5 BTC giveaway!
Post by: nocube on May 07, 2013, 11:42:16 AM
Neat!

3524af553adc


Title: Re: 5 BTC giveaway!
Post by: 🏰 TradeFortress 🏰 on May 07, 2013, 12:42:40 PM
5e90c35ccdf5


Title: Re: 5 BTC giveaway!
Post by: Ferdinandreyes on May 07, 2013, 01:45:55 PM
cc2c87a25f41


Title: Re: 5 BTC giveaway!
Post by: pheaonix on May 07, 2013, 03:19:50 PM
7efec74ec3da (https://coinroll.it/bet/7efec74ec3da)


Title: Re: 5 BTC giveaway!
Post by: Boelens on May 07, 2013, 03:40:14 PM
I love this site! Smooth, great layout, easy to use, and it's getting me addicted. Thanks ._.

Also, 45f504320048


Title: Re: 5 BTC giveaway!
Post by: Yurkov on May 07, 2013, 05:08:41 PM
Good site, nice instant cash-in and cash-outs, no need to wait for winning or losing, you'll know instantly.

Good luck to the rest

ade59f6944c3 (https://coinroll.it/bet/ade59f6944c3)


Title: Re: 5 BTC giveaway!
Post by: iANDROID on May 07, 2013, 05:18:27 PM
https://coinroll.it/bet/085f21b67b19

 ;)


Title: Re: 5 BTC giveaway!
Post by: Valle on May 07, 2013, 08:53:06 PM
0fe41c635033


Title: Re: 5 BTC giveaway!
Post by: ThickAsThieves on May 07, 2013, 09:04:22 PM
Bump for good ole Scrat.


Title: Re: 5 BTC giveaway!
Post by: MasonIII on May 08, 2013, 08:18:37 AM
cc5b4ebed259

Thanks!


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 08, 2013, 03:12:23 PM
5e90c35ccdf5
7efec74ec3da (https://coinroll.it/bet/7efec74ec3da)
Same person with an alt? (Same sig)


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 08, 2013, 03:59:51 PM
Same person with an alt? (Same sig)

https://bitcointalk.org/index.php?topic=198934 (https://bitcointalk.org/index.php?topic=198934)


Title: Re: 5 BTC giveaway!
Post by: drakedog on May 09, 2013, 08:07:59 AM
damn, I started with .01 and got up to around .08 and then went on a losing spree haha I knew I should've stopped after I got 8x what I started with!

7d533a573cd0



Title: Re: 5 BTC giveaway!
Post by: Rawted on May 09, 2013, 07:30:16 PM
https://coinroll.it/bet/6f41dac40bbd


Title: Re: 5 BTC giveaway!
Post by: icey on May 09, 2013, 09:13:44 PM
cool website :)

dc92ae681ef1


Title: Re: 5 BTC giveaway!
Post by: bapakece on May 10, 2013, 09:53:59 AM
try to be luck in this website   ;D

e395b0a65980


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 10, 2013, 09:04:45 PM
Same person with an alt? (Same sig)

https://bitcointalk.org/index.php?topic=198934 (https://bitcointalk.org/index.php?topic=198934)
Whoops, my bad.


Title: Re: 5 BTC giveaway!
Post by: nocompare on May 11, 2013, 08:19:00 AM
i'm join

8912282542e3


Title: Re: 5 BTC giveaway!
Post by: Superior on May 11, 2013, 12:27:24 PM
Awesome UI

https://coinroll.it/bet/a3cb15b4017b


Title: Re: 5 BTC giveaway!
Post by: Hfleer on May 11, 2013, 01:10:26 PM
Coinroll.it (https://coinroll.it/?r=3) is sponsoring a 5 BTC giveaway to lucky players.

All you have to do is play one game on our website (https://coinroll.it/?r=3) - it can be as low as 0.00001 BTC. The amount of bets you make doesn't matter, and neither does the number that you rolled. What you need to do then is paste the bet ID of one of these bets as a reply to this thread.

The 3 winners will be chosen in 2 weeks using the following procedure:

We have chosen a random 12 digit hex ID in advance. The SHA256 hash of that string (plus extra padding to avoid brute forcing) is
Code:
f93e0d55b98e61dddfa4d3aae8204cfa727c909af15ef81ccdda9ac8313ceca4

The ID will be revealed in 2 weeks - the 21st of May.

The 3 winners are those with a bet ID which has the smallest modular distance to our random ID.


The modular distance is defined as
min((a - b) mod 248, (b - a) mod 248)
where a, b are 48bit integer representations of the hex IDs


Prize pool:
Winner: 3 BTC
2nd and 3rd: 1 BTC each

Winners will be asked to prove that they actually played the game by either signing a message from one of the originating addresses or performing an action on the website while logged in.


Why the modular distance? Why wouldn't a regular subtraction do?
If we used the absolute value of (a - b) instead then bets wouldn't have a uniform distribution of probability.

nice, here's mine:
https://coinroll.it/bet/d1ab64135b6b


Title: Re: 5 BTC giveaway!
Post by: arsenische on May 11, 2013, 01:42:41 PM
265a8c475c72


Title: Re: 5 BTC giveaway!
Post by: Lailoken on May 11, 2013, 05:23:59 PM
Bet cf108077ed4f



Fun! Cool site.


Title: Re: 5 BTC giveaway!
Post by: BitLucky on May 11, 2013, 06:45:38 PM
6b6840365b68


Title: Re: 5 BTC giveaway!
Post by: kuriboh on May 11, 2013, 11:48:43 PM
Really adiccting!!!

ed7381ef59e0


Title: Re: 5 BTC giveaway!
Post by: sisenor on May 12, 2013, 01:50:37 AM
https://coinroll.it/bet/fa78ccb124e9

Sweet game!


Title: Re: 5 BTC giveaway!
Post by: next89 on May 12, 2013, 02:55:21 AM
c37ad4d88f76



Title: Re: 5 BTC giveaway!
Post by: noedaRDH on May 12, 2013, 04:45:47 AM
https://coinroll.it/bet/119c4e5974b0 (https://coinroll.it/bet/119c4e5974b0)


Title: Re: 5 BTC giveaway!
Post by: lsvpa on May 12, 2013, 05:10:34 AM
6683ddc7384f

Seems fun, won my first time trying.

edit: after 833 bets I lost it all... lots of fun though.


Title: Re: 5 BTC giveaway!
Post by: TheD1ceMan on May 12, 2013, 10:21:54 AM
db31066bf835

nice site, instant transfer of funds!


Title: Re: 5 BTC giveaway!
Post by: onecoin on May 13, 2013, 07:21:04 AM
23696E636C75

12GXZKAkP1i7Zd1xoReJoLeDGzzyXxRbuj


Title: Re: 5 BTC giveaway!
Post by: Jahare on May 13, 2013, 09:22:41 AM
c9af11d3238f


Title: Re: 5 BTC giveaway!
Post by: ixne on May 13, 2013, 04:59:56 PM
I could get into trouble with a site like that...

199c9066d421


Title: Re: 5 BTC giveaway!
Post by: Ailure on May 13, 2013, 05:01:34 PM
1c007e9ca29d


Title: Re: 5 BTC giveaway!
Post by: Amph on May 13, 2013, 06:36:11 PM
287a6bac3cfe
http://imageshack.us/photo/my-images/849/immaginelhe.png/ (http://imageshack.us/photo/my-images/849/immaginelhe.png/)

cool game


Title: Re: 5 BTC giveaway!
Post by: Pokerfan on May 13, 2013, 07:37:05 PM
e79bd0cec2cc

I like the site very much!


Title: Re: 5 BTC giveaway!
Post by: Keldel on May 13, 2013, 07:44:53 PM
https://coinroll.it/bet/7f70f98d0105


Title: Re: 5 BTC giveaway!
Post by: asc366 on May 13, 2013, 07:55:12 PM
Addicting! Might program against the API for this, same as I did for peerbet! :-)

https://coinroll.it/bet/d2dc12109f06 was my first lucky strike!


Title: Re: 5 BTC giveaway!
Post by: Pumpkin on May 13, 2013, 08:33:14 PM
https://coinroll.it/bet/645271b50337


Title: Re: 5 BTC giveaway!
Post by: Prattler on May 13, 2013, 08:47:11 PM
https://coinroll.it/bet/b01858ae334c

Very very very fun! SatoshiDice will die a painful death! Long live Coinroll.it!

Of course I lost all my money in the end ;) Gamble only what you can afford to lose!


Title: Re: 5 BTC giveaway!
Post by: btc_lurker on May 14, 2013, 10:24:57 PM
Nice layout, and I'm mostly ok with the API.

But! This is a big "but" for me, by the way. Stop storing the user/password in a cookie, and specially do not store anywhere in plain text (much more specially don't do that in the cookies!). I just did a SELECT * FROM moz_cookies WHERE baseDomain = 'coinroll.it'; on cookies.sqlite from Firefox and I see everything as clear as it can get.

My second issue is the limit of bets. Are you scared of someone suddenly getting lucky on < 1 and stealing all your pot ?

Nevertheless, congrats on making a decent API for it.


Title: Re: 5 BTC giveaway!
Post by: sour_diesel on May 15, 2013, 12:13:27 AM
I made an account just to enter this, so far I'm down a little bit, but it's a fun website with a great UI.


bbfa716dc61e


Title: Re: 5 BTC giveaway!
Post by: GhostOfDawn on May 15, 2013, 12:34:06 AM
99016fa9e1fb Tried my luck. :D


Title: Re: 5 BTC giveaway!
Post by: Ajay on May 15, 2013, 12:48:07 AM
8da0-4491-3045



Title: Re: 5 BTC giveaway!
Post by: D35TR0Y3R on May 15, 2013, 01:44:13 AM
a70cdb2dccf6

Nice site


Title: Re: 5 BTC giveaway!
Post by: Skrapps on May 15, 2013, 03:06:18 AM
9d74570f667e

Game enjoyed, would play again.


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 15, 2013, 09:29:15 AM
8da0-4491-3045

That's your user ID.


Title: Re: 5 BTC giveaway!
Post by: chungy on May 15, 2013, 09:57:48 AM
61ed61a8fa5f (https://coinroll.it/bet/61ed61a8fa5f)


Title: Re: 5 BTC giveaway!
Post by: pandemic on May 15, 2013, 10:31:25 PM
I tried for 3 bets. All three lost.  :-\

   
088dee346263



Title: Re: 5 BTC giveaway!
Post by: danieldaniel on May 15, 2013, 10:47:10 PM
ID is e42da5481371


Title: Re: 5 BTC giveaway!
Post by: Ivica on May 16, 2013, 10:48:32 AM
4aaec33df448

Sadly for my wallet it's very addictive.


Title: Re: 5 BTC giveaway!
Post by: MattFoster42 on May 16, 2013, 10:53:58 AM
Really great site design, that renders well on mobile as well.

c1ccb033e57a

Especially like the small house edge, and the micro bet capabilities


Title: Re: 5 BTC giveaway!
Post by: fredtrader on May 16, 2013, 11:05:55 AM
38fcb87f7035

I lost  :(, though hopefully better luck on the prizes here.


Title: Re: 5 BTC giveaway!
Post by: protokol on May 16, 2013, 06:34:32 PM
https://coinroll.it/bet/4064b50c7b10 (https://coinroll.it/bet/4064b50c7b10)  :'(

Cool site design, very addictive!


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 16, 2013, 11:25:26 PM
Needs less addiction.


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 17, 2013, 12:53:23 PM
Nice layout, and I'm mostly ok with the API.

But! This is a big "but" for me, by the way. Stop storing the user/password in a cookie, and specially do not store anywhere in plain text (much more specially don't do that in the cookies!). I just did a SELECT * FROM moz_cookies WHERE baseDomain = 'coinroll.it'; on cookies.sqlite from Firefox and I see everything as clear as it can get.

My second issue is the limit of bets. Are you scared of someone suddenly getting lucky on < 1 and stealing all your pot ?

Nevertheless, congrats on making a decent API for it.

I just saw your post, sorry for the delay.

This was a design choice. I wanted it to be loginless and stateless. The alternative would be to have a (static) session ID which would pretty much have the same effect: if someone has access to your machine they can access your Coinroll balance. Which I don't think is a problem anyway. If your system is compromised you have bigger problems than your balance on a gambling website.

The cookie has the 'httpOnly' and 'secure' flags set, so it can't be read by javascript and it is only transmitted via HTTPS.

People don't leave Bitcoins on the website. They also make (and they should) new accounts for every session.

As for your second question, the pot is big enough to make that event highly unlikely. The betting limits are adjusted based on that.


Title: Re: 5 BTC giveaway!
Post by: forexmasterja on May 17, 2013, 05:54:37 PM
Lucky #

e98f-6c29-003c


Title: Re: 5 BTC giveaway!
Post by: lerelerele on May 17, 2013, 05:55:49 PM
5e90c36ccef5


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 17, 2013, 06:46:11 PM
Lucky #

e98f-6c29-003c

That's not a bet ID.


Title: Re: 5 BTC giveaway!
Post by: btc_lurker on May 18, 2013, 12:29:17 AM
Nice layout, and I'm mostly ok with the API.

But! This is a big "but" for me, by the way. Stop storing the user/password in a cookie, and specially do not store anywhere in plain text (much more specially don't do that in the cookies!). I just did a SELECT * FROM moz_cookies WHERE baseDomain = 'coinroll.it'; on cookies.sqlite from Firefox and I see everything as clear as it can get.

My second issue is the limit of bets. Are you scared of someone suddenly getting lucky on < 1 and stealing all your pot ?

Nevertheless, congrats on making a decent API for it.

This was a design choice. I wanted it to be loginless and stateless. The alternative would be to have a (static) session ID which would pretty much have the same effect: if someone has access to your machine they can access your Coinroll balance. Which I don't think is a problem anyway. If your system is compromised you have bigger problems than your balance on a gambling website.

The cookie has the 'httpOnly' and 'secure' flags set, so it can't be read by javascript and it is only transmitted via HTTPS.

You are skipping another approach that should be obvious: there are bugs everywhere. I don't actually need to compromise a computer in order to access their cookies (including the httpOnly ones), I just need a browser with a bug that has been published (or not) which allows access to cookies.

Of course there are other approaches, maybe they are just not feasible for you ? GMail uses cookies too, but plain passwords is something you won't find there.


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 18, 2013, 08:55:16 AM
You are skipping another approach that should be obvious: there are bugs everywhere. I don't actually need to compromise a computer in order to access their cookies (including the httpOnly ones), I just need a browser with a bug that has been published (or not) which allows access to cookies.

Of course there are other approaches, maybe they are just not feasible for you ? GMail uses cookies too, but plain passwords is something you won't find there.

You're arguing just for the sake of argument.

I suspect you're going to have to wait for a long time for that bug, because this is the sort of bug that would break the entire internet. Cookies are sandboxed. If a bug allows a website to read another website's cookies then that's the mother of all 0days. In a universe where a bug of this magnitude is likely to happen then you might just have browsers accessing your files (along with your wallet.dat), accessing other processes' memory (yes, your encrypted wallet), or even deleting your hard drive.

Here are the alternatives:

1) Sending the password encrypted to the browser. That would accomplish nothing since there's still a 1-to-1 relationship of encrypted to cleartext.

2) A static session ID. Again, if someone got a hold of your session ID they would be able to access your account.

3) A dynamic session ID that changes on every request. Would make it a bit harder but the end result is the same.

Since the password is dynamically generated and I don't allow you to change it, it acts as a unique ID. This is not Gmail, this is not a banking website. It's a game with loginless "accounts".


Title: Re: 5 BTC giveaway!
Post by: btc_lurker on May 18, 2013, 02:59:12 PM
You are skipping another approach that should be obvious: there are bugs everywhere. I don't actually need to compromise a computer in order to access their cookies (including the httpOnly ones), I just need a browser with a bug that has been published (or not) which allows access to cookies.

Of course there are other approaches, maybe they are just not feasible for you ? GMail uses cookies too, but plain passwords is something you won't find there.

I suspect you're going to have to wait for a long time for that bug, because this is the sort of bug that would break the entire internet. Cookies are sandboxed. If a bug allows a website to read another website's cookies then that's the mother of all 0days.

I simply don't know what is your experience with this, and on what you are basing your answers. Are you aware of, for example, http://seckb.yehg.net/2012/06/xss-gaining-access-to-httponly-cookie.html ? This is the return of five seconds googling, I hope you are aware of people that simply don't share their findings in this area. Storing passwords in plain text anywhere is simply a bad idea, supposedly safe cookies in 2013 do not make them a better idea. You can just ignore the situation, of course.


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 18, 2013, 04:36:11 PM
I simply don't know what is your experience with this, and on what you are basing your answers. Are you aware of, for example, http://seckb.yehg.net/2012/06/xss-gaining-access-to-httponly-cookie.html ? This is the return of five seconds googling, I hope you are aware of people that simply don't share their findings in this area. Storing passwords in plain text anywhere is simply a bad idea, supposedly safe cookies in 2013 do not make them a better idea. You can just ignore the situation, of course.

Had you read your own damn link you'd realize:
a) This is a JAVA/SILVERLIGHT/INSERTSTUPIDSHITHERE EXPLOIT
b) It still doesn't break the domain sandbox, which means that the attacker would have to XSS it into my website somehow. I filter/sanitize all user-supplied input.

Class dismissed.


Title: Re: 5 BTC giveaway!
Post by: 138bpm on May 18, 2013, 04:54:36 PM
6ac480b50387


Title: Re: 5 BTC giveaway!
Post by: elebit on May 19, 2013, 05:55:47 AM
9c309fd00ce4


Title: Re: 5 BTC giveaway!
Post by: BigBitz on May 19, 2013, 09:19:59 PM
6f4f1bec95fa

Thanks for a great game  8)


Title: Re: 5 BTC giveaway!
Post by: dooglus on May 19, 2013, 11:14:46 PM
553098633cb8


Title: Re: 5 BTC giveaway!
Post by: ThickAsThieves on May 19, 2013, 11:43:35 PM
553098633cb8

Dooglus, I'd be interested in your feedback on this site in comparison to satoshidice.com. Do you see any interesting pros/cons in contrast?

To me it seems straight-up better here.


Title: Re: 5 BTC giveaway!
Post by: dooglus on May 20, 2013, 05:19:24 AM
Dooglus, I'd be interested in your feedback on this site in comparison to satoshidice.com. Do you see any interesting pros/cons in contrast?

To me it seems straight-up better here.

SatoshiDice is clearly much better.  Because I'm a shareholder.  ;)

Other than that, the almost-instant feedback here is very nice, as is the ability to make custom games.

SatoshiDice obviously has much higher max bets than any of the recent clones and works even when the website is unavailable.  But other than those two advantages CoinRoll looks good to me.  I guess another concern would be whether they have a large enough bankroll to cover the inevitable swings of fortune.  When the edge is only 1% you can go quite far into the red before seeing a profit, and the site needs to be able to cover the loss for a while.  Then of course there's the question of reputation.  SDICE has been around for a long time (in Bitcoin years...) and so feels a little safer than the new places for now.  Provable fairness doesn't help you if the site just disappears with your balance one day.


Title: Re: 5 BTC giveaway!
Post by: Emergenz on May 20, 2013, 12:44:18 PM
cfb7327f9360


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 20, 2013, 04:54:01 PM
Here's the script I'll be using tonight at midnight (GMT) to pick the winners:

Code:
<?php

/*
 * Coinroll.it giveaway script (https://bitcointalk.org/index.php?topic=197242.0)
 * A 64-bit build of PHP is required
 */

$modulo hexdec('ffffffffffff');

// Change this to the secret ID once it is released
$secretId hexdec('aaaaaaaaaaaa');

// Player bets go here
$data '
aaaaaaaaaaaa Player1
bbbbbbbbbbbb Player2
cccccccccccc Player3
'
;

$playerDistances = array();

function 
arithmeticMod($x$m)
{
if ($m 0$m = -$m;
$r $x $m;
return ($r 0) ? $r $m $r;
}

function 
modDistance($a$b$m)
{
return min(arithmeticMod($a $b$m), arithmeticMod($b $a$m));
}

$players explode("\n"$data);

foreach(
$players as $player)
{
if (strlen($player) < 12) continue;
list($id$name) = explode(' '$player2);
$playerDistances[$name] = modDistance(hexdec($id), $secretId$modulo);
}

asort($playerDistances);

echo 
"Player                   Distance\n---------------------------------------------------\n";

foreach(
$playerDistances as $name => $distance)
{
echo str_pad($name25) . $distance  "\n";
}

?>



Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 20, 2013, 04:58:33 PM
Obligatory xkcd

http://xkcd.com/221/


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 20, 2013, 05:06:16 PM
Obligatory xkcd

http://xkcd.com/221/

One of the best xkcd's.


Title: Re: 5 BTC giveaway!
Post by: ograyray on May 20, 2013, 05:24:38 PM
LOVE IT!

55000fc4aef71b103


Title: Re: 5 BTC giveaway!
Post by: dooglus on May 20, 2013, 07:25:36 PM
LOVE IT!

55000fc4aef71b103

I think you mean https://coinroll.it/bet/fc4aef71b103

< 55000 is the game you were playing (and it's far too close to my entry, 553098633cb8 ! ;) )


Title: Re: 5 BTC giveaway!
Post by: ograyray on May 20, 2013, 07:36:18 PM
dooglus, did you see that roll?!  244 haha nice first roll... if only i had known.

And yes thank you for the correction:  bet ID = fc4aef71b103


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 20, 2013, 09:16:10 PM
I disagree with this drawing script. Needs to be more like

Code:
int pickWinner {
return "Mooshire"
//chosen by questionable name out of hat
//guaranteed to be completely legit
}


Title: Re: 5 BTC giveaway!
Post by: dooglus on May 20, 2013, 09:35:25 PM
dooglus, did you see that roll?!  244 haha nice first roll... if only i had known.

Yeah, it kind of sucks when you win so convincingly.  Because you could have won so much more if only you had been braver.  :)


Title: Re: 5 BTC giveaway!
Post by: Ajay on May 20, 2013, 10:18:15 PM
41d3f126f968



Title: Re: 5 BTC giveaway!
Post by: scalar33 on May 20, 2013, 11:28:35 PM
7bd155ee7c66


Title: Re: 5 BTC giveaway!
Post by: Scrat Acorns on May 20, 2013, 11:59:29 PM
It's over!

The ID was e889acf0504e

The hashed message was
Code:
e889acf0504e_randompadding#gJ7n39u5

Script that was used (https://gist.github.com/anonymous/e0528c363ab21ab02f94)

The output (https://gist.github.com/anonymous/6681e1bfe0b0cdb10eb4)


Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC

I will PM the winners.


Title: Re: 5 BTC giveaway!
Post by: danieldaniel on May 21, 2013, 12:11:03 AM
It's over!

The ID was e889acf0504e

The hashed message was
Code:
e889acf0504e_randompadding#gJ7n39u5

Script that was used (https://gist.github.com/anonymous/e0528c363ab21ab02f94)

The output (https://gist.github.com/anonymous/6681e1bfe0b0cdb10eb4)


Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC

I will PM the winners.
Yaysicles!  1NJzhk5xBBrgYtGxJaDURxubCt7KYTNP4o


Title: Re: 5 BTC giveaway!
Post by: dooglus on May 21, 2013, 12:36:05 AM
Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC

I will PM the winners.

Congrats to the winners.

My strategy failed me; I made a list of all the entries, found the biggest 'gap' between them, and played until I had a bet ID that fell near the middle of that biggest gap, thus maximising my chance of winning.


Title: Re: 5 BTC giveaway!
Post by: counter on May 21, 2013, 01:40:49 AM
 damn thought i had more time congrats winners

edit: nice site I won my first play then lost it all in 3 bets   :D


Title: Re: 5 BTC giveaway!
Post by: Mooshire on May 21, 2013, 02:58:11 AM
It's over!

The ID was e889acf0504e

The hashed message was
Code:
e889acf0504e_randompadding#gJ7n39u5

Script that was used (https://gist.github.com/anonymous/e0528c363ab21ab02f94)

The output (https://gist.github.com/anonymous/6681e1bfe0b0cdb10eb4)


Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC

I will PM the winners.

You spelled Mooshire wrong.


Title: Re: 5 BTC giveaway!
Post by: arsenische on May 21, 2013, 03:32:26 AM
Your service is great, but please lock the thread. I don't want to read about my failure again and again :)


Title: Re: 5 BTC giveaway!
Post by: kuriboh on May 21, 2013, 04:58:01 AM
It's over!

The ID was e889acf0504e

The hashed message was
Code:
e889acf0504e_randompadding#gJ7n39u5

Script that was used (https://gist.github.com/anonymous/e0528c363ab21ab02f94)

The output (https://gist.github.com/anonymous/6681e1bfe0b0cdb10eb4)


Winners:
Pokerfan (https://bitcointalk.org/index.php?action=profile;u=81201): 3 BTC
danieldaniel (https://bitcointalk.org/index.php?action=profile;u=33781): 1 BTC
kuriboh (https://bitcointalk.org/index.php?action=profile;u=112675): 1 BTC

I will PM the winners.


Wow!!! I won!!! Great day today :D


Title: Re: 5 BTC giveaway!
Post by: Pokerfan on May 21, 2013, 09:07:55 AM
I confirm that I have received the prize from Scrat Acorns.

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 some mBTC, so there's not enough money to buy anything, but they can donate or gamble.


Title: Re: 5 BTC giveaway!
Post by: danieldaniel on May 21, 2013, 10:16:33 PM
Same here.  Thanks, Scrat!


Title: Re: 5 BTC giveaway!
Post by: hasher87 on May 22, 2013, 05:08:51 PM
Bet 64d5560808c2  ::)
https://coinroll.it/bet/64d5560808c2