Bitcoin Forum
November 29, 2020, 05:22:34 PM *
News: Latest Bitcoin Core release: 0.20.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Marketplace / Double Trouble 2! Double your money within 7 days! on: June 04, 2011, 10:36:12 PM
Double Trouble 2

Double Trouble 2 is a very simple game. Someone begins with an arbitrary amount (at least 0.05 btc), for example 0.10 btc. The next one in the game can send also an arbitrary amount. The first gets double his amount if the total amount after the entry is double his amount. Then the next one can get double his money and so on! This continues until 7 days after the last double!
Note: You don't have to double the previous amount.

Steps
1. Send at least 0.05 btc to
Code:
1L5XmYTMvJ5chaMoYRybX6grpMGVYhbJcn
Watch: http://blockexplorer.com/address/1L5XmYTMvJ5chaMoYRybX6grpMGVYhbJcn

2. Wait (or promote this game) until someone else plays and double your money within 7 days!

- Excluding transaction fee and 1% fee
- Don't use EWallet

Open source! (Python)
Code:
tickets = [
    ['1EPd8DM5vQ3UvQY6Yr4bcYk13a4XsBnwz3', 5],
    ['1EnvHJgQh7WGPpnL686RDQFW6FEeznTbkB', 10],
    ['1tqwh6iBYk7F7gcVQ7PKuamf1PR4QgbgF', 20],
    ['1HvsWwqqtc775XM2iYHjAoekpzH3dptVNr', 41],
    ['1JosHcP8sVeBCdonMDSaZfS6cb9Ub46cmJ', 40],
    ['1FZ8tW5wjh1EDFsztSQYtpkxsa1C79GvZX', 125],
    ['1DpL7b8XBE7N2FecL6GGMtSRVUyBKC6Rd3', 251],
    ['16Uox1JKSqfe5LpWpm5TVVqdCcqBiybfgP', 5],
    ['19xRS9cz3m8YXnf83eWe2vHRL1skgixJre', 20],
    ['1FdtJayHR5qWJ67RAhGDjgedVKjFSHSKad', 75],
    ['1BUN1vb6r6fz1peafNrptCtMuRwVq8aNKo', 5],
    ['1AiqDfTWsT2wiu9JqgFJaCYpJZ5XBMGRPy', 50],
    ['12DnFV5JeeD8oBeVd17hkqZCaAnKzWeoNp', 15],
    ['17r7ALUqoKQ3d8MpQ8QBTfqiEoQMiztRDh', 20],
    ['1HvsWwqqtc775XM2iYHjAoekpzH3dptVNr', 50],
    ['1QKVV9BHmZNJkMCUNyssYX1BimzXZ72dQP', 125],
    ['1NV8i5tQGysjogJZcZ2mAQkf6NsT4ccw2Q', 100],
    ['19oR5xAYaASPtPxgaV3BuQTCn7Dh9Wrzqw', 40],
    ['17CNzobc24LRVJq3gCQd9QnWLdpDCoXxNU', 20],
    ['1582JDAsVa7Az7Y6EDQF8GKMV6mg1P45Cd', 100],
    ['1Gky6cMJbc2cnVeN3XRneEnrf2AkbLKxZ5', 27],
    ['1LBYhr4Nqjk2fRYmmbsgqd5bu5ZmfJhFot', 17],
    ['1KrgjdHmwmVcEWjjeucbsy4EZKQeegGVPx', 10],
    ['1B2hyCyBMoxTfCmdkMGEmHBd6RjC6H3QoS', 10],
    ['18Efa3oHTiiVp3DUo1PZqZk5E1wvfvTWRM', 8],
    ['1GSpia2fLLu9BqWeTq1je7o4HnTdBVWRAD', 34],
    ['1jm7dK6WVtLYLvwZ3tj8spUUgtgZTyPSR', 40],
    ['1PkNeHAtxzojKWxDphiEhQxP6xzbGGXiv3', 100],
    ['1AeCTNhF3Sovi8fkjq7Buy8sYoc2C4xoo4', 752],
]

result = []

total = 0
wanted = tickets[0][1] * 2
index = 0
for i in range(1,len(tickets)):
    total += tickets[i][1]
    while (total >= wanted):
        print (tickets[index][0], wanted)
        total = total - wanted
        index = index +1
        wanted = tickets[index][1] * 2
print(str(wanted - total) + " cents to go for next double")
2  Economy / Marketplace / Double Trouble: double your money within 7 days! Double 2 btc! on: June 04, 2011, 08:29:45 PM
Double Trouble

Double Trouble is a very simple game. Someone begins with at least 0.05 btc. The next one in the game has to enter double that amount, 0.1 btc. The first one gets 0.1 from the bank. This continues until 7 days after the last entry nobody has played!

Steps
1. Watch the last entry in the game
http://blockexplorer.com/address/1L7buRK4t9QYEJ2jMco5dcun5a2Amh3Rbr

2. Send double the amount of the last entry to
Code:
1L7buRK4t9QYEJ2jMco5dcun5a2Amh3Rbr

3. Wait (or promote this game) until someone else plays and double your money within 7 days!

- Excluding transaction fees
- Not doubling previous entry is at own risk
3  Economy / Marketplace / Bitcoin Lottery: minimum just 0.01 btc! Next draw: July 1 Jackpot 1.52 btc on: May 25, 2011, 12:12:33 PM
What is the Bitcoin Lottery?

The Bitcoin Lottery is a lottery where anyone can win, the lottery takes no share and the process is transparent. The code that picks the winner(s) is open source.

How does it work?
You can send an arbitrary amount of bitcoins (minimum 0.01 bitcoin) to an adress. The adress for next lottery (closes July 1) is:

Quote
1LUeahDNnVwqh8utERNxPhoh7zdzSmh4AG
(view: http://blockexplorer.com/address/1LUeahDNnVwqh8utERNxPhoh7zdzSmh4AG)

When do I win and how much?
All bets are randomly assigned to a block. Each block is equal to the average deposit. The program picks randomly a block and returns the winners and their share (in percent).
For example, if you send 0.1 bitcoin and the average is 1 bitcoin, you probably end up in one block and then you win 10% of the draw.
If you send 1 bitcoin and the average is 1 bitcoin, you probably end up in two blocks randomly, for example 10 cents in one block and 90 cents in another. If you win with the first block you win 10%, the second block will return 90% of the draw. So to be sure to have the chance of winning 100% you need 2 bitcoins.
The program is designed in such a way the lottery will always return 100% of the jackpot size.

Don't you cheat?
No. The first and second block on 1 July (after 0:00 UTC) will be used as random strings by adding them and create a SHA256 hash.

The code (Python)
Code:
import math
tickets = [
    ["1Km4sASEeKUWPtjRaSxmVghF5FfkadWVei",2],
    ["18uZGH42pcmHVtZ8sux7bCf8oJJtSCAAJs",1],
    ["1Jmn97kfJ6DBBCuft6Z1oW8e2Lwgheyr6s",2],
    ["1Jmn97kfJ6DBBCuft6Z1oW8e2Lwgheyr6s",1],
    ["1Jmn97kfJ6DBBCuft6Z1oW8e2Lwgheyr6s",1],
    ]

class BitcoinLottery:
    def __init__(self):
        self.total = 0
        for x in tickets:
            self.total += x[1]
        self.BLOCKSIZE = int(math.ceil(self.total/float(len(tickets))))

    def shuffle(self, rand):
        i = 0
        prevx = 0
        for t in range(len(tickets)):
           j=0
           shuffle=0
           for x in range(t, len(rand)):
               j = j + ord(rand[x])
           shuffle = j % len(tickets) - i          
           tickets[i], tickets[i+shuffle] = tickets[i+shuffle], tickets[i]
           if (i < len(rand)-1):
               i+=1
           else:
               i=0  
   
    def calculate(self):
        blocks = []
        block=0
        for x in tickets:
            k = x[0]
            v = x[1]
            nblock=block
            while(v>0):
                r = self.BLOCKSIZE - block % self.BLOCKSIZE
                if (v <= r):
                    a = v
                    nblock+=v
                    v = 0
                else:
                    a = r
                    v -= r
                    nblock += r
                blocks.append([int(block/self.BLOCKSIZE),k,a])
                block = nblock
        rand = 0
        print("total: " + str(float(self.total)/100) + " bitcoins")
        for x in blocks:
            if (x[0] == rand):
                print(x[1] + " won " + str(float(x[2]*self.total)/10000 * (100/self.BLOCKSIZE)) + " bitcoins")
bit = BitcoinLottery()
bit.shuffle('3029309209i1');
bit.calculate()
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!