strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 28, 2012, 08:51:04 PM Last edit: November 05, 2012, 06:49:37 AM by strideynet |
|
I have built a 16x16 grid on excel. Every Friday we will take a draw. You bet on a location and whether its 0 or 1. I'm deciding to have it very cheap to join in! But not sure on exact price. I will post a screen shot of the results. I'm also wondering how to distribute the prize. Should i devise it equally between Winners. Or some sort of fixed prize? I will be creating a separate wallet for it.
So i want feedback. Do you like the idea? Which prize distribution do you prefer? Price per bet? How often to draw? And would you like to play?
|
|
|
|
austin
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 31, 2012, 12:49:40 AM |
|
How do i insert images?
When you post, there's a little picture of a photograph above the emoticons. Put the link to the image between the tags it creates.
|
|
|
|
gweedo
Legendary
Offline
Activity: 1498
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
October 31, 2012, 07:08:32 AM |
|
Yea if you can't insert images on a forum, I really doubt your taking the security of funds seriously and probably shouldn't be running a game.
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 01, 2012, 08:10:13 AM |
|
I know about the tag thing. I meant where's the best place to host the images. And I use many forums and sometime the image system is different.
|
|
|
|
flynn
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 01, 2012, 09:33:46 AM |
|
To make it more related to bitcoins :
Create a bitcoin address and its private key (with no money in it)
Publish the address and assign the first 256 bits of the private key to the grid bits, keep that secret of course.
At the end of the game, publish the private key so everyone can check that you didn't cheat with defining the 16x16 grid.
my 0.02BTC
|
intentionally left blank
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 01, 2012, 01:28:40 PM Last edit: November 01, 2012, 11:08:03 PM by deepceleron |
|
No need for images or Excel: python example:import random import hashlib num1s = 0 while num1s != 128: secret = random.randint(0,2**(16*16)-1) binsecret = bin(secret)[2:].zfill(256) num1s = binsecret.count('1') hexsecret = hex(secret)[2:-1].zfill(64) print 'secret: ' + hexsecret print 'SHA256: ' + hashlib.sha256(hexsecret).hexdigest() print '\n ABCDEFGHIJKLMNOP\n ----------------' linprt = 0 while linprt < 16: print str(linprt).zfill(2) + ': ' + str(binsecret[linprt*16:linprt*16+16]) linprt += 1 secret: 095d89f44b28976bc3fc65eab15241ed9a86ad19654564f4382a7bdb13ba839c SHA256: 35a72c21c86e21e3797614424ed98d649b2bdeddd6ec0acb5190b1db741f499d
ABCDEFGHIJKLMNOP ---------------- 00: 0000100101011101 01: 1000100111110100 02: 0100101100101000 03: 1001011101101011 04: 1100001111111100 05: 0110010111101010 06: 1011000101010010 07: 0100000111101101 08: 1001101010000110 09: 1010110100011001 10: 0110010101000101 11: 0110010011110100 12: 0011100000101010 13: 0111101111011011 14: 0001001110111010 15: 1000001110011100I tweaked the code so only a secret grid with an equal number of 0 and 1 bits will be used (only about 1 in 20 will have an equal number). Otherwise the operator may search for one with bias. You post the SHA256 now so we can later verify the real secret "grid" was used. To play: Pick a bit 0-255. If operator says it's 1, you double yer money. If only there was some way of automating the betting on a number between 0-65536 with hashes and secrets combined with user-generated random data unique to each bet....
|
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 02, 2012, 02:42:01 AM Last edit: November 02, 2012, 03:11:03 AM by deepceleron |
|
Because coding iz phun: I made a revision to this silly game with some awful python code where you can choose any number of bits when you generate your "grid", and can specify how many 1 bits you want in it. Less 1's = harder odds, and guess-the-bit is more like playing battleship.
import random, hashlib numberOfBits = 192 # edit this: how many bits (max 65536, slow above 4096) numberOfOnes = 4 # edit this: how many 1's in the bit list numberOfOnesFound = 0 while numberOfOnesFound != numberOfOnes: secret = 0 bitIndex = 0 while bitIndex < numberOfBits: randomBit = int(random.uniform((float(numberOfOnes)/float(numberOfBits)),(1+(float(numberOfOnes)/float(numberOfBits))))) secret = secret + (randomBit) * 2**(numberOfBits-bitIndex-1) bitIndex +=1 binsecret = bin(secret)[2:].zfill(numberOfBits) numberOfOnesFound = binsecret.count('1') # print 'checking: number-of-ones-found: ' + str(numberOfOnesFound) + ' (need ' + str(numberOfOnes) + ')' hexsecret = hex(secret)[2:-1].zfill((numberOfBits+3)/4) # was 64 print '\nsecret: ' + hexsecret print 'SHA256: ' + hashlib.sha256(hexsecret).hexdigest() print '\n 01234567 89ABCDEF\n -------- --------' linprt = 0 while linprt <= numberOfBits-1: print hex(linprt)[2:].zfill(4) + 'h: ' + str(binsecret[linprt:linprt+8]) + ' ' + str(binsecret[linprt+8:linprt+16]) linprt += 16
secret: 800000001000000000000000000000080000000000010000 SHA256: b97f4dfd717c877a8bbbc84b7eb7e569fcd9c8618846e3fcecc4aa5ed93bb81d
01234567 89ABCDEF -------- -------- 0000h: 10000000 00000000 0010h: 00000000 00000000 0020h: 00010000 00000000 0030h: 00000000 00000000 0040h: 00000000 00000000 0050h: 00000000 00000000 0060h: 00000000 00000000 0070h: 00000000 00001000 0080h: 00000000 00000000 0090h: 00000000 00000000 00a0h: 00000000 00000001 00b0h: 00000000 00000000
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 03, 2012, 08:37:18 AM |
|
Thanks guys for the advice. I will use the python version as its pretty useful. Thanks. Deepceleron Ty alot. I will donate some share of any profit. I'll see if I can play with the code a bit. So I'm guessing I post the sha256 before the draw. And the private afterwards.
|
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 03, 2012, 12:03:02 PM |
|
I know about the tag thing. I meant where's the best place to host the images. And I use many forums and sometime the image system is different.
I'm 12. I fully understand bitcoin concepts. Age should never be a problem. I run a hosting company. I built my computer. I mine bitcoins and have fully worked out electric costs and shares per hour. Never underestimate a kid.
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fi3.kym-cdn.com%2Fphotos%2Fimages%2Fnewsfeed%2F000%2F264%2F241%2F9e9.gif&t=665&c=LKu1pLgWS2KnMA)
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 04, 2012, 08:00:06 AM |
|
Fair enough. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) . Even sometimes I can overlook the simple ;(. I still use free image hosting services because it doesn't damage my max bandwidth.
|
|
|
|
gweedo
Legendary
Offline
Activity: 1498
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 04, 2012, 08:21:51 AM |
|
Fair enough. ![Grin](https://bitcointalk.org/Smileys/default/grin.gif) . Even sometimes I can overlook the simple ;(. I still use free image hosting services because it doesn't damage my max bandwidth. then you obviously don't run a hosting company if you have a max bandwidth. When can we get an age restriction on this site, maybe 17+ I feel like I am at daycare.
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 05, 2012, 06:48:09 AM |
|
Well you do. Even with colo. Actually it's a resellers account.
|
|
|
|
gweedo
Legendary
Offline
Activity: 1498
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 05, 2012, 06:56:37 AM |
|
Well you do. Even with colo. Actually it's a resellers account.
Actually no, do your research, if your a reseller account then you made a bad contract, also all hosting companies i know of have there own hardware, and rent space in a datacenter. No more 12 yrs allowed, we can't have Chris Henson coming for us
|
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 05, 2012, 12:29:29 PM |
|
Well you do. Even with colo. Actually it's a resellers account.
Actually no, do your research, if your a reseller account then you made a bad contract, also all hosting companies i know of have there own hardware, and rent space in a datacenter. No more 12 yrs allowed, we can't have Chris Henson coming for us Bitcoin doesn't discriminate against age, and we shouldn't in this forum. How old were you when you when you first learned about money and it's value? Probably even before you started getting your lunch money stolen in school. As we have learned in this forum, being of age to be able to enter into a contract has little value in determining if something is a scam or evaluating whether preponderance of law in a courtroom will allow you to successfully seek relief. After all, a contract is nothing but a "permission to sue" form.
|
|
|
|
gweedo
Legendary
Offline
Activity: 1498
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 05, 2012, 03:22:01 PM |
|
Well you do. Even with colo. Actually it's a resellers account.
Actually no, do your research, if your a reseller account then you made a bad contract, also all hosting companies i know of have there own hardware, and rent space in a datacenter. No more 12 yrs allowed, we can't have Chris Henson coming for us Bitcoin doesn't discriminate against age, and we shouldn't in this forum. How old were you when you when you first learned about money and it's value? Probably even before you started getting your lunch money stolen in school. As we have learned in this forum, being of age to be able to enter into a contract has little value in determining if something is a scam or evaluating whether preponderance of law in a courtroom will allow you to successfully seek relief. After all, a contract is nothing but a "permission to sue" form. I learned about money, but I wasn't making decisions how the money was evolving. Also never got my lunch money stolen, I was taking lunch money ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) Also I pretty sure, that you have to be of a certain age to enter into a contract without a parent consenting for you since, you may not understand what the fact of the contract is. While bitcoin doesn't discriminate against age, this forum should since they are spreading false information. This is not daycare.
|
|
|
|
danieldaniel
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 11, 2012, 01:05:35 AM |
|
Well you do. Even with colo. Actually it's a resellers account.
Actually no, do your research, if your a reseller account then you made a bad contract, also all hosting companies i know of have there own hardware, and rent space in a datacenter. No more 12 yrs allowed, we can't have Chris Henson coming for us Bitcoin doesn't discriminate against age, and we shouldn't in this forum. How old were you when you when you first learned about money and it's value? Probably even before you started getting your lunch money stolen in school. As we have learned in this forum, being of age to be able to enter into a contract has little value in determining if something is a scam or evaluating whether preponderance of law in a courtroom will allow you to successfully seek relief. After all, a contract is nothing but a "permission to sue" form. I learned about money, but I wasn't making decisions how the money was evolving. Also never got my lunch money stolen, I was taking lunch money ![Wink](https://bitcointalk.org/Smileys/default/wink.gif) Also I pretty sure, that you have to be of a certain age to enter into a contract without a parent consenting for you since, you may not understand what the fact of the contract is. While bitcoin doesn't discriminate against age, this forum should since they are spreading false information. This is not daycare. (1) Fuck you. (2) I'm 14 (I revealed my age #bitcoin-otc! This is a major event!). (3) I've run a few websites. I've co-run one website. (4) I have participated in HUNDREDS of trades on #bitcoin-otc, since I was 12. Age doesn't mean anything. (5) Fuck you.
|
|
|
|
danieldaniel
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 11, 2012, 01:16:53 AM |
|
I'm 12. I fully understand bitcoin concepts. Age should never be a problem. I run a hosting company. I built my computer. I mine bitcoins and have fully worked out electric costs and shares per hour. Never underestimate a kid.
I've been doing Bitcoin since I was 12. My solution was to say I was 17 until a couple months ago, where I said I wasn't telling anyone. Then I told people here. The trick is to build up a reputation, then reveal your age. People won't care as much.
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
November 11, 2012, 07:05:46 AM |
|
Wow. Flame wars are childish. And Daniel Daniel that was unescerry.anyone can run a website! Yup hate to ruin your day but anyone can design a website these days.
|
|
|
|
🏰 TradeFortress 🏰
Bitcoin Veteran
VIP
Legendary
Offline
Activity: 1316
Merit: 1043
👻
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 26, 2012, 04:26:27 AM |
|
Because coding iz phun: I made a revision to this silly game with some awful python code where you can choose any number of bits when you generate your "grid", and can specify how many 1 bits you want in it. Less 1's = harder odds, and guess-the-bit is more like playing battleship.
import random, hashlib numberOfBits = 192 # edit this: how many bits (max 65536, slow above 4096) numberOfOnes = 4 # edit this: how many 1's in the bit list numberOfOnesFound = 0 while numberOfOnesFound != numberOfOnes: secret = 0 bitIndex = 0 while bitIndex < numberOfBits: randomBit = int(random.uniform((float(numberOfOnes)/float(numberOfBits)),(1+(float(numberOfOnes)/float(numberOfBits))))) secret = secret + (randomBit) * 2**(numberOfBits-bitIndex-1) bitIndex +=1 binsecret = bin(secret)[2:].zfill(numberOfBits) numberOfOnesFound = binsecret.count('1') # print 'checking: number-of-ones-found: ' + str(numberOfOnesFound) + ' (need ' + str(numberOfOnes) + ')' hexsecret = hex(secret)[2:-1].zfill((numberOfBits+3)/4) # was 64 print '\nsecret: ' + hexsecret print 'SHA256: ' + hashlib.sha256(hexsecret).hexdigest() print '\n 01234567 89ABCDEF\n -------- --------' linprt = 0 while linprt <= numberOfBits-1: print hex(linprt)[2:].zfill(4) + 'h: ' + str(binsecret[linprt:linprt+8]) + ' ' + str(binsecret[linprt+8:linprt+16]) linprt += 16
secret: 800000001000000000000000000000080000000000010000 SHA256: b97f4dfd717c877a8bbbc84b7eb7e569fcd9c8618846e3fcecc4aa5ed93bb81d
01234567 89ABCDEF -------- -------- 0000h: 10000000 00000000 0010h: 00000000 00000000 0020h: 00010000 00000000 0030h: 00000000 00000000 0040h: 00000000 00000000 0050h: 00000000 00000000 0060h: 00000000 00000000 0070h: 00000000 00001000 0080h: 00000000 00000000 0090h: 00000000 00000000 00a0h: 00000000 00000001 00b0h: 00000000 00000000
Wow, really? Some JS: var gridSize = 1024; var bits = 512; var assignedBits = 0; var grid = []; while(assignedBits < bits){ newLoc = Math.floor(Math.random() * gridSize); if(!grid[newLoc]){ grid[newLoc] = 1; assignedBits++; } } No need for floats or anything.
|
|
|
|
strideynet (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 27, 2012, 08:30:37 PM |
|
Awh we all love JavaScript ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
|