Casino

Angry roll - Use case #1

Casino Use Case: ANGRY ROLL

Our first major use case is a crypto casino, operating under the name "ANGRY ROLL." This casino is designed to provide an engaging and fair gaming experience, leveraging principles of transparency and trust to establish a strong foundation for our ecosystem.

Casino Model

ANGRY ROLL will operate off-chain with a provably fair system, allowing players to deposit a wide range of cryptocurrencies not limited to HBAR and transfer them into an on-site balance. Players can withdraw their funds at any time, ensuring flexibility and convenience.

Why Off-Chain?

Operating the casino off-chain, instead of integrating directly with Web3 wallets, significantly improves the player experience. Direct wallet integration often requires waiting for transaction confirmations, which can disrupt the gaming flow and reduce excitement. By processing transactions off-chain, we ensure smooth and fast gameplay, enhancing player satisfaction. Additionally, this approach positions us for future integrations with mainstream payment providers like Google Pay, PayPal, and Visa, aligning with our vision to build a real, scalable business.

Games Offered

  1. Roulette

    • A classic roulette game.

    • Payouts:

      • Black or Red: 2x

      • Purple: 14x

    • House Edge: To be finalized before release.

  2. Jackpot Game

    • Players contribute money into a shared prize pool by staking their desired amounts.

    • Countdown Timer: Once the first player stakes money, a 60-second countdown begins. Players can continue adding to the pool during this time.

    • Winning Probability: The more a player stakes, the higher their chances of winning the jackpot. Each contribution increases the player’s odds proportionally to the total amount in the pool.

    • A 2.5% fee will be deducted from the winner’s prize, with the remaining amount distributed to the winner.

  3. Coinflip

    • Players can create a game room with a selected amount and coin side (Heads or Tails) or join an existing room.

    • The coin flip starts after both players join.

    • A 1.5% fee will be deducted from the winner’s prize.

Note: All fees are subject to change and will be finalized before the casino’s launch in Q2 2025. The finalized fee structure will be clearly outlined in this document for transparency.

Revenue Model

The revenue generated by the casino is distributed across three pools to align with our commitment to rewarding contributors and participants:

  • Pool A (40%): Allocated to the founders and team, shared internally among team members.

  • Pool B (40%): Dedicated to Founder Pass holders, split equally among pass holders.

    • Formula: Pool B ÷ 100

  • Pool C (20%): Reserved for Angry H-Bot Gen 0 NFT holders.

    • Formula: Pool C ÷ 160

    • Distribution:

      • Standard bots receive 1% per NFT.

      • Golden bots receive 2% per NFT (higher revenue share).

Provably Fair System

To ensure transparency and trust, ANGRY ROLL employs a provably fair system for all games. This system allows players to verify the fairness of game outcomes using cryptographic methods, guaranteeing that results are tamper-proof and independently verifiable. Below are the technical details for each game.

ROULETTE TECHNICAL DETAILS

Our roulette system generates the result for each round using the SHA-256 hash of three separate inputs:

  1. Public Seed: A concatenation of five pairs of random numbers ranging from 01 to 39, generated daily.

  2. Server Seed: A SHA-256 hash of 16 cryptographically secure random bytes, generated at the same time as the public seed.

  3. Round ID: A unique identifier for each round.

Roulette

$server_seed = "(Server seed goes in here)";
$public_seed = "(Public seed goes in here)";
$round = "(Round id goes in here)";
$hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round);
$roll = hexdec(substr($hash, 0, 8)) % 15;
if ($roll == 0) $roll_colour = 'purple';
elseif ($roll >= 1 and $roll <= 7) $roll_colour = 'red';
elseif ($roll >= 8 and $roll <= 14) $roll_colour = 'black';

echo("Roll: $roll\nColour: $roll_colour");

Players can replicate any past roulette roll using the following code. To validate, use the unhashed server seed with the script above.

COINFLIP AND JACKPOT TECHNICAL DETAILS

Both Coinflip and Jackpot use the same provably fair system to ensure fairness. The result for each round is generated using the SHA-256 hash of three distinct inputs:

  1. Private Seed: A securely random value generated when a round is created. The SHA-256 hash of this private seed is displayed to all players immediately upon round creation. Players can verify the private seed against its hash after the result is revealed.

  2. Public Seed: For Coinflip, this is the ID of an EOS blockchain block generated after the round begins. For Jackpot, this is a random value generated by the system at the time of the first bet. This ensures that neither players nor the system can predict the public seed in advance.

  3. Round ID: A unique identifier for the game round.

Coinflip

$private_seed_hash = "(Private_seed_hash goes in here)";
$private_seed = "(Private_seed goes in here)";
$public_seed = "(Public_seed goes in here)";
$round = "(Round id goes in here)";
if (hash('sha256', $private_seed) != $private_seed_hash) {
    echo "WARNING: Private seed hash does not match private seed!\n";
}
$hash = hash('sha256', "$private_seed-$public_seed-$round");
$flip = (hexdec(substr($hash, 0, 8)) % 2) + 1;
echo "Result: " . ($flip == 1 ? 'Heads' : 'Tails ');

Jackpot

$private_seed_hash = "(Private_seed_hash goes in here)";
$private_seed = "(Private_seed goes in here)";
$public_seed = "(Public_seed goes in here)";
$round = "(Round id goes in here)";

if (hash('sha256', $private_seed) != $private_seed_hash) {
    echo "WARNING: Private seed hash does not match private seed!\n";
}

$hash = hash('sha256', "$private_seed-$public_seed-$round");
$result = hexdec(substr($hash, 0, 8));

// Example: List of players and their staked amounts
$players = [
    'Player1' => 50, // Player 1 staked 50
    'Player2' => 30, // Player 2 staked 30
    'Player3' => 20  // Player 3 staked 20
];

$total_weight = array_sum($players);
$normalized_result = $result % $total_weight;
$current_weight = 0;
foreach ($players as $player => $stake) {
    $current_weight += $stake;
    if ($normalized_result < $current_weight) {
        $winner = $player;
        break;
    }
}

echo "Winner: $winner\n";

Players can validate the results of any past Coinflip or Jackpot round using the code above.

Players can execute this code using a PHP tool or interpreter. A link to the tool will be provided on the website for easy access.

Future Actions

For more precise timelines, please refer to our Roadmap. Below are some of the key next steps for the development of ANGRY ROLL:

  • Community Poll: A poll will be set up to gather community feedback on whether to integrate Web3 wallets or continue with the current off-chain system for improved gameplay speed and flexibility.

  • Finalizing Fees: We will finalize the fee structure for all games before the official launch, ensuring transparency and fairness.

  • Liquidity Management: In the early stages of Jackpot and Coinflip, our system will use a bot named ANGRY_ROLL to create and join games. This will help maintain better liquidity and ensure a seamless player experience while user activity is still growing.

  • Integrating Deposits with HBAR and Our Token: We aim to integrate deposits using HBAR and our native token, creating a more seamless and inclusive ecosystem for our community.

  • Applying for a Grant from the Hedera Foundation: We plan to apply for a grant from the Hedera Foundation to secure additional resources and support for the development and scaling of our ecosystem.

  • Acquiring an Online Gambling License: To ensure compliance with international regulations and to legitimize our platform, we will work on acquiring an online gambling license from a recognized authority.

  • Additional Actions: Further updates and enhancements will be detailed in upcoming announcements as we continue to develop and expand the ecosystem.

Note:

Some of these are future plans that we aim to execute. Tasks that are already in progress or scheduled will be displayed in the Roadmap.

Last updated