Skip to content

Session game

Snakes

Two dice name a square: a multiplier grows the run, a snake ends it.

Return to player
95.00%
Volatility
High
Max win
1,795,089.60x
House edge
5.00%

Return to player: At every roll and every difficulty.

How a round of Snakes goes

Snakes is a session game. The player moves step by step and can cash out between steps.

  1. The player rolls two dice, up to five times a round.

  2. Their sum names one of the squares 2 to 12: a multiplier square multiplies the run.

  3. A snake square ends the run; the player can cash out after any roll.

The player chooses
A difficulty, then whether to roll again
A win pays
The multiplier reached, up to 1,795,089.60x
Profit above your limit
A win past your max profit pays the limit, and the record says so.

Check any Snakes round

Each number the round reads comes from HMAC-SHA256 of the server seed, the client seed, the round counter and a cursor.

Open the fairness verifier
  1. Committed before the bet (done)

    The player sees the SHA-256 hash of the server seed before playing.

  2. Played on three inputs (done)

    The round uses the server seed, the player’s client seed and a counter.

  3. Revealed on rotation (done)

    When the player rotates seeds, the old server seed is revealed.

  4. Recomputed by anyone (now)

    The round recomputes from the three inputs and must match its record.

Every settled round keeps a record like this one. The verifier replays it in your browser and says whether it matches.

Settled round record
{
  "game": "SNAKES",
  "input": {
    "currency": {
      "code": "USD",
      "scale": 2
    },
    "limits": {
      "max_profit": "100000.00",
      "max_stake": "1000.00",
      "min_stake": "0.10"
    },
    "params": {
      "difficulty": "EASY"
    },
    "profile": "source",
    "stake": "1.00"
  },
  "steps": [
    {
      "outcome": {
        "exposure": "30.56",
        "payout": "0.00",
        "refund": "0.00",
        "stake": "1.00",
        "status": "open",
        "trace": {
          "from": 0,
          "to": 0
        },
        "view": {
          "can_cashout": false,
          "current_multiplier": "1.00",
          "current_round": 0,
          "difficulty": "EASY",
          "floats_used": 0,
          "nonce": 1,
          "rolls": [],
          "status": "IN_PROGRESS"
        }
      }
    },
    {
      "action": {
        "do": "roll"
      },
      "outcome": {
        "exposure": "18.24",
        "payout": "0.00",
        "refund": "0.00",
        "stake": "1.00",
        "status": "open",
        "trace": {
          "from": 0,
          "to": 2
        },
        "view": {
          "can_cashout": true,
          "current_multiplier": "1.14",
          "current_round": 1,
          "dice1": 2,
          "dice2": 2,
          "difficulty": "EASY",
          "floats_used": 2,
          "multiplier": "1.14",
          "nonce": 1,
          "rolls": [
            {
              "dice1": 2,
              "dice2": 2,
              "multiplier": "1.14",
              "round": 1,
              "sum": 4
            }
          ],
          "round": 1,
          "status": "IN_PROGRESS",
          "sum": 4
        }
      }
    },
    {
      "action": {
        "do": "cashout"
      },
      "outcome": {
        "exposure": "1.14",
        "payout": "1.14",
        "refund": "0.00",
        "stake": "1.00",
        "status": "settled",
        "trace": {
          "from": 2,
          "to": 2
        },
        "view": {
          "auto_cashout": false,
          "current_multiplier": "1.14",
          "current_round": 1,
          "difficulty": "EASY",
          "final_multiplier": "1.14",
          "floats_used": 2,
          "game_result": {
            "difficulty": "EASY",
            "multiplier": "1.14",
            "rolls": [
              {
                "d": [
                  2,
                  2
                ],
                "m": "1.14",
                "s": 4
              }
            ],
            "status": "CASHED_OUT"
          },
          "max_profit_hit": false,
          "nonce": 1,
          "payout": "1.14",
          "profit": "0.14",
          "rolls": [
            {
              "dice1": 2,
              "dice2": 2,
              "multiplier": "1.14",
              "round": 1,
              "sum": 4
            }
          ],
          "status": "CASHED_OUT",
          "win": true
        }
      }
    }
  ],
  "stream": {
    "client_seed": "example-player-seed",
    "kind": "fairrandom",
    "nonce": 1,
    "server_seed": "9bbaedbd3e5d064bca522e7a2c43526bae4eea638f1e7a0f4bdfff3fd1a8d9e3",
    "server_seed_hash": "84a110ac0826221481a2354b7d52cc1478858af88be4104dbfae27f2988427dd"
  },
  "tables": [
    {
      "fingerprint": "c1199c6abb133bc229a2ce8585748bb423be2114c0b568dc1603a06da76b55bf",
      "name": "snakes/v1/boards"
    }
  ],
  "v": 1,
  "version": 1
}

Add Snakes to your casino

Embed the client and settle through your wallet, or call the API and settle on your own ledger. Each step of a round is one more call.

Embed the client

Your server
POST /v1/launch
Idempotency-Key: lnch_snakes_01

{ "game": "snakes", "brand": "br_casino_main",
  "player_ref": "plr_42", "currency": "USD",
  "mode": "real", "locale": "en" }
Your page
<betrail-game
  game="snakes"
  api-base="https://api.betrail.example"
  token="EXAMPLE_launch_token_0000000000000000000000"
></betrail-game>

Call the API

Your server
POST /v1/rounds
Idempotency-Key: rnd_snakes_01

{ "game": "snakes", "brand": "br_casino_main",
  "player_ref": "plr_42", "currency": "USD",
  "stake": "1.00", "params": {"difficulty":"EASY"} }
  • Each step then goes to POST /v1/rounds/{id}/actions, the cash-out too.
  • The params for Snakes are in the API reference.
Open the API reference

More session games

See all session games

Call heads or tails up to 20 times in a row.

Return
95.00%
Volatility
Medium
Max win
996,147.20x

Rock, paper, scissors: a streak of up to 20 wins, ties keep it.

Return
95.00%
Volatility
Medium
Max win
996,147.20x

Seven holes, some with moles: whack one each round, stop before you miss.

Return
94.28–95.00%
Volatility
High
Max win
5,476,560.95x