Bitcoin Forum
August 21, 2024, 01:29:38 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Investor-based games / Re: [ANNOUNCE] 1BitcoinJackpot.com game on: November 13, 2017, 08:07:08 PM
Just to reiterate, winners are verifiably, deterministically chosen:

Quote
#!/usr/bin/env pseudo-python3

from random import seed, uniform

current_block_hash = previous_game_block['nextblockhash']

jackpot_total = 0
players = []

while True:
    current_block = getblock(current_block_hash)

    for transaction in current_block:
        if transaction['amount'] <= 0:
            continue

        jackpot_total += amount

        players.append({
            'from_address': transaction['from_address']
            'amount': transaction['amount'],
        })

    if jackpot_total < 0.01:
        current_block_hash = current_block['nextblockhash']
        continue

    seed(current_block['nextblockhash'])
    winning_marker = uniform(0.0, float(jackpot_total))

    current_marker = 0
    winner_address = None

    for player in players:
        current_marker += player['amount']

        if winning_marker <= current_marker:
            winner_address = player['from_address']
            break

    send_to_winner = float(jackpot_total) * 0.99
    send_to_bank = float(jackpot_total) - send_to_winner

    sendmany("", {
        winner_address: send_to_winner,
        bank_address: send_to_bank,
    })

    jackpot_total = 0
    current_block_hash = current_block['nextblockhash']
2  Economy / Investor-based games / [ANNOUNCE] 1BitcoinJackpot.com game on: November 13, 2017, 12:24:40 PM
Hi everyone,

Announcing a new game in town 1BitcoinJackpot.com

The rules are simple:

Quote
 1. Send any amount of Bitcoin to the jackpot address (remember: Bitcoin 3G iPad):

    1Bitcoin3giPAD4FP2FLgTCtcA1nqUinTa

  2. Wait 6 confirmations to play a game

  3. Every time the jackpot address has over BTC0.01BTC, a new game begins

  4. The winner (chosen deterministically) will receive 99% of the jackpot

  5. Remember: the more you send, the higher your chances of winning

To deterministically verify how a winner is chosen, see the site for more details.

We're starting out small (BTC0.01). If we see lots of people playing at the same time, we'll increase it to BTC0.1BTC, then BTC1BTC, then the Moon!

Edit: The starting block is 000000000000000000b1e14d9966b83b41af0b3f69f4c432672d2ab0dd0d9b1f
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!