ZKasino Documentation
WebsitedAppTwitterTelegram
  • Welcome
  • Tokenomics
  • ZKasino Bridge
  • ZKasino Chain Testnet
  • ZKasino
    • Roadmap and FAQ
    • Responsible Gaming
    • Live Support
    • IPFS hosting
    • Mainnet Guide
    • Official Links
  • Platform
    • Glossary
    • Betting
    • Chains and Bet tokens
    • Self Exclusion
  • Developer
    • Contract addresses
    • Audits
    • Infrastructure
    • VRF Oracle
    • Architecture
    • Metaplay
    • Probability, Odds and House Edge
      • Dice
      • Plinko
      • Video Poker
      • Slots
      • Mines
      • Rock Paper Scissors
      • Coin Flip
    • Kelly-based bankroll management
    • Changelog
      • Game contracts v2.1
      • Game contracts v2.0
      • Contracts v1.0
      • Integrated VRFs (old)
      • Testnet Guide (outdated)
    • Testing
      • BNB Chain private fee testing
      • v2.1 private testnet WIP
      • v2.0 public testnet
      • v2.0 private testnet
      • multi-chain private mainnet with VRF
      • v1.1 public testnet
      • multi-chain private testnet with VRF
      • v1.0 public testnet
      • wip v1.0 private testnet
      • v2.1 public testnet
Powered by GitBook
On this page
  • Probability
  • House Edge and Multiplier
  • Odds
  1. Developer
  2. Probability, Odds and House Edge

Rock Paper Scissors

Probability

Rock Paper Scissors (RPS) uses the function _determineRPSResult which has three possible outcomes: 1, 2 and 3.

randomActions[i] = uint8(randomWords[i] % 3);
outcomes[i] = _determineRPSResult(game.action, randomActions[i]);
Player outcome
Probability

Rock

33.3%

Paper

33.3%

Scissors

33.3%

House Edge and Multiplier

A 2% fee is taken off the payout by multiplying with 1.98 on a win and can be found in the RockPaperScissors contract:

payout += (game.wager * 198) / 100;
payouts[i] = (game.wager * 198) / 100;

A 1% fee is taken off the wager by multiplying with 0.99 on a draw:

payout += (game.wager * 99) / 100;
payouts[i] = (game.wager * 99) / 100;

No fee is taken on a loss.

Player outcome
Fee
Multiplier

Win

2%

1.98x

Draw

1%

0.99x

Loss

0%

0x

Therefor, the house edge for RPS is 1% ((2+1+0)/3).

Odds

With the above in mind, the odds for RPS are:

Odds
Outcome

Decimal odds

0.99

Return to Player

99%

Probability odds

49.5%

PreviousMinesNextCoin Flip

Last updated 1 year ago