A mini-roulette themed betting game for the cruzbit blockchain
Players place bets on one or more outcomes, consisting of hexadecimal digits zero through F (numeric 0 through 9, and alphabetic A through F) individually or in various groupings, by sending an amount (the "bet") to a corresponding cruzbit wallet address. The winning number is determined by the last digit of the "hash" or block ID number used to identify the block containing those transactions. Winning amounts (the "payout") are calculated based on the probability of each respective bet outcome, and are sent to the player in the following block.
How To Play
- Select which bet to place, for example "Street 1,2,3"
- Send your chosen bet amount to the wallet address for "Street 1,2,3" (
- Wait for the block to be solved by the cruzbit network
- When the block is solved, if the last digit of the hash is one (1), two (2), or three (3), you will receive a transaction to the wallet address you used to send your bet in step 2 for the amount of your winnings
Winning bets receive their bet amount plus the payout amount as a winning transaction. For example, a bet of 10 cruz on a winning play of "Straight 0", which has a payout of eight-to-one ("14:1") receives a payment for 10 cruz (the "bet") + 140 cruz (14 * 10 = 140; the "payout"), for a total transaction of 150 cruz. Payout transactions are made in the immediately following block (bet block-height + 1), except in the exceptionally rare occasion where a subsequent block is found faster than a payout transaction can be propagated to the network, in which case the transaction will appear in the second following block (bet block-height + 2).
Payout transactions are tagged with the bet's block ID in the memo field, facilitating easy correlation between payout and bet. For example:
Hash Roulette win: 8 on Street 7,8,9 (4:1) at block 28577
All bets and payouts are recorded publicly on the cruzbit blockchain (the "ledger"), and it is therefore trivial to check that all winning bets are rewarded fairly.
To check that a payout was issued for a winning bet:
- Determine in which block a bet was placed by searching for the transaction ID in a cruzbit block explorer.
- Get the block header (or full block) by searching either for its block height.
- Observe the last (right-most, or "0 position") digit in the Block ID (hash). This is the winning number.
- Find the address or addresses which correspond to bets that include the winning number. If the bet was sent to one of these addresses, it is a winning bet.
- Get the full block information of the next successive block in the chain (by block height).
- Ensure there is a transaction in the reverse direction (from the bet address to the bettor's address) with an amount that is greater than the original bet amount.
Minimum, Maximum Bet Amounts
- The minimum bet is currently: 1 cruz (100000000 cruzbit)
- The maximum bet is currently: 25 cruz (2500000000 cruzbit)
Bettors will pay any necessary transaction fees required in order to place bets (transfer funds to a bet wallet address). The game will pay any necessary transaction fees required in order to transfer a payout to winnners (transaction fees will not be deducted from a player's winnings).
Each bet address maintains its own bank of funds available for payouts. Funds are not shared across bet types.
In the event that a winning address does not have enough funds to cover the entirety of all winning payouts for that bet type, the following rules are followed:
- Winners will never receive less than their bet amount
- Enough funds will be witheld to cover fees to send payout transactions
- Payouts (minus the original bet amount and fees) will be scaled according to the available funds in the account, proportionally among all winners (minus a small percentage, so the account does not reach zero)
For example, if Player A bet 25 CRUZ and Player B bet 10 CRUZ on a 2:1 bet, the account balance is only enough to cover 73% of the amount required to pay all winners a full payout (approximately 77 CRUZ), each winner will be paid their original bet in full plus approximately 70% of their winning payout. So, Player A will receive approximately 60 CRUZ (25 bet + 35 payout), and Player B will receive approximately 24 CRUZ (10 bet + 14 payout).
In this way, winning players are rewarded proportionally up to the maximum funds available to reimburse their due winnings, and the wallet retains enough balance to cover the transaction fees of potential future winning bettors, helping to ensure winning players never receive less than their original bet.
Players are encouraged to check any bet address(es) before betting to ensure there is sufficient balance to cover payouts for their desired bet amount.
If a winning bet is made that exceeds the maximum bet amount, the following rules will be applied:
- The amount exceeding the maximum bet will be returned unchanged
- The payout multiplier will be applied to the maximum bet amount
- The adjusted original bet (now equal to the maximum bet) will be returned
For example, if the maximum bet is 25 cruz, and a player makes a winning bet of 30 cruz with a 2:1 payout, the player will receive a transaction for 55 cruz [(30 bet - 25 max) + (25 max * 2 payout) + 25 adjusted original bet = 55].
Any amount exceeding the maximum bet made to non-winning bet addresses is forfeit to the game. Players are strongly encouraged to know, and limit their bets to the maximum bet amount.
- The letters (referred to as "numbers") "A", "C", and "E" are considered EVEN, while "B", and "D" are considered ODD.
- "0" (zero) and "F" are NOT RED, BLACK, EVEN, nor ODD.
- Hash Roulette operates on the cruzbit blockchain. Do not attempt to send non-cruzbit coins or currencies to bet addresses.
- Do not include the word "Deposit" in the memo field of transactions made to bet addresses. The "Deposit" designation is used by game operators to increase the available bank amount in bet wallets. Any transaction to bet addresses using "Deposit" in the memo field will be forfeit to the game.
- Hash Roulette has no control over issues concerning network consensus, nor blockchain forking. In the event of an unintended fork (causing "orphaned blocks"), bets and payouts may be affected. This is entirely out of the control of the game, however occurrences should be quite rare.