Skip to content

Devilla/bc-verify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BC Verify - Game Verification Tools

This repository contains verification tools for various casino games.

Limbo House Edge Comparison

Test Parameters

  • Server Seed: d5b17cfd3e7a6bcde32de08b0587eb750961169e869323c6bc1c952fd56aa58a
  • Client Seed: fb40e2d39c3b7f36722e534fa8a087e5
  • Nonce: 7
  • HMAC SHA256: de07465c1eb48608e6992db3d813e4f2fbacae0fd256bd31318763086d9d2484

Comparison Results

House Edge Result (Multiplier)
2% 7.38x
1% 7.46x

Analysis

  • Absolute difference: 0.08x
  • Percentage difference: 1.08% higher with 1% house edge

Conclusion: With a 1% house edge (vs 2%), the payout multiplier is approximately 0.08x higher (7.46x vs 7.38x). This demonstrates that a lower house edge results in a higher payout multiplier, as expected in the Limbo game mechanics.

Formula

The game result is calculated using:

seed = hmac_sha256(client_seed:nonce, server_seed)
r = parseInt(seed.slice(0, 13), 16)
X = r / 2^52
X = (100 - house_edge) / (1 - X)
result = max(1, floor(X) / 100)

Roulette Single House Edge Comparison

Test Parameters

  • Server Seed: 8cc5ff99bb11f5e337ed86f88661286f300e6747a1dc0a394daba48d64a4b990
  • Client Seed: 8ada83f6adfdcf1fe7c0231aa93809fb
  • Nonce: 0
  • HMAC SHA256: c9fe8116942b5834379f45c916da59f7b4ee0b7f9929ef14dbaa01b3b90629b0

Comparison Results

House Edge Result (Roulette Number 0-36)
2.7 18
2.700000000000003 18
2.700000000000000 18
1.0 (for comparison) 18

Analysis

  • Result: Identical for all house edge values
  • Roulette Number: 18 (same regardless of house edge)

Conclusion: The house edge parameter does not affect the roulette number calculation. The winning number (0-36) is determined solely by the cryptographic hash and remains constant regardless of the house edge value. The house edge affects payout calculations and odds, but not the actual winning number generated by the provably fair algorithm.

Formula

The roulette result is calculated using:

hash = hmac_sha256(client_seed:nonce, server_seed)
index = (parseInt(hash.substring(0, 15), 16) % 47)
num = parseInt(hash.substring(index, index + 14), 16) >> 3
result = floor((num * 2^-53) * 37)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 62.6%
  • JavaScript 37.2%
  • CSS 0.2%