Elite Le Club

Transparency

At Elite Le Club you play with eGold, the currency of elitepvpers, the gaming and trading forum. Deposits and withdrawals go through your own elitepvpers account, and every game is provably fair: how the result comes about and how to recalculate it yourself is explained on this page.

This page can be reached without signing in. It contains everything needed to recalculate any past round without help from the operator.

Procedure

How the result comes about

Before every round the result is already fixed – but nobody knows it, not even the operator. This is how it works:

  1. The server creates a secret random value, the server seed, and immediately publishes its SHA256 hash. That fixes it: it cannot be swapped afterwards.
  2. The player chooses a client seed. Because it goes into the calculation, the operator cannot determine the result in advance – he does not know the player's choice when he fixes the server seed.
  3. The nonce counts the rounds of this seed pair, the cursor counts the numbers within a round.
  4. These four values produce the roll. The same inputs always give the same result – anyone can recalculate it.
  5. When the seeds change, the old server seed is revealed. Anyone who compares the hash published earlier with the revealed seed sees that nothing was swapped.
raw = HMAC_SHA256(key = serverSeed, message = "<clientSeed>:<nonce>:<cursor>")

The key is the server seed as a string, not the bytes decoded from the hex. The number 0 to 9999 comes from the first two bytes; if the raw value falls into the range that cannot be divided evenly, it is discarded and drawn again with the cursor increased. Without this discarding some results would be more frequent than others.

Recalculate yourself
House edge
GameHouse edgeRules
Dice 1.00% 10000 equally likely outcomes. Odds = (1 / win chance) × 0.99. Win chance from 1.00% to 95.00%.
Nothing is rounded. Only odds that work out without remainder for the chosen bet are offered – so the house edge on every single bet is exactly 1.00%, even on a bet of 1 eGold. There is no minimum bet.
Roulette 2.7027% European wheel: 37 pockets, one zero. Payouts are calculated on 36 – a bet on n pockets pays back 36/n times the bet.
The house edge lies entirely in the zero and is therefore the same for every bet type: straight 36×, split 18×, street 12×, corner 9×, six line 6×, dozen and column 3×, even-money bets 2×.
Red/black, even/odd and 1–18/19–36 lose completely on zero – there is no partial refund and no prison rule (no en prison, no partage). That is the variant with the higher house edge on the even-money bets; it is used here because then all bet types have the same edge and the page does not have to show two numbers.
Nothing is rounded. 36 is divisible by every number of pockets a bet can cover, so every payout is a whole multiple of the bet. That is why there is no minimum bet here either. At most 20 bets per spin.
Blackjack 0.97% per eGold wagered
1.10% per initial bet
Blackjack pays 7:5. That is the most expensive rule at this table – it costs about 0.5 points compared with the usual 3:2, measured on the same rounds.
The dealer hits soft 17 instead of standing. Another 0.2 points or so.
6 decks, shuffled exactly once before every round. No cut card, no continuous shoe – card counting is useless here, because every round starts from the same composition.
The dealer checks for blackjack at once with an ace or ten-value card (peek). Double on any two cards and after splitting. Split up to 3 hands; split aces get exactly one card and are not split again. 21 from a split hand is not a blackjack. No surrender, no insurance, no even money.
Bets only in multiples of 5 eGold. At 7:5 a blackjack pays 12/5 times the bet; on 1 eGold that would be 2.4 eGold. Nothing is rounded, so only bets that work out can be played.
What the number refers to: whoever doubles or splits adds to the bet – on average 1.14 initial bets are on the table. The 0.97% in front is the loss per eGold actually wagered – the number that compares directly with dice and roulette, where nothing is added. Relative to the initial bet, the amount you decide to bet, it is 1.10% – that is how the blackjack house edge is usually stated in the literature.
Where the number comes from: unlike dice and roulette it cannot be calculated, only measured – it follows from the interplay of drawing rules, double, split and payout. Measured over 2.5 million simulated rounds in 10 independent runs, against basic strategy, 6 decks, 7:5, H17, double after split, no surrender, with an uncertainty of ± 0.07 points. Anyone who plays worse than basic strategy pays more.
Slot
with jackpot
1.00%
over a jackpot cycle
Three reels with 20 positions each, all three with the same strip; the middle row counts. The reel strip, position 0 to 19:
C L C B C 7 L C B ★ C L B C 7 L C B C L
C = cherry, L = lemon, B = bell, 7 = seven, ★ = star. One number per reel with getInt(20), cursor from 0; if a value is discarded, the cursor moves on, and the next reel starts there. That gives exactly 8,000 equally likely outcomes – few enough that they can all be counted:
CategoryConditionOutcomesPays
Jackpotthree stars1/800015 × bet and the share of the jackpot
Largethree bells or three sevens72/800015 × bet
Mediumthree cherries or three lemons637/80003 × bet
Smallestexactly two of a kind4470/80001 × bet
–everything else2820/8000nothing
The calculation:
Fixed wins   = (4470·1 + 637·3 + 72·15 + 1·15) / 8000 = 7476/8000
Jackpot                                      = 444/8000
Payout rate over the cycle                   = 7920/8000
House edge                                   = 80/8000
The house edge lies in the pay table, not in a fee. Every fixed payout is a whole multiple of the bet; nothing is ever rounded there, and there is no minimum bet.
The jackpot. Every bet adds 444/8000 to it, that is 5.55%. It sits in its own account, counts as a liability of the house and is paid out of that account, never out of the bankroll. Fractions below one eGold are not lost: they are carried to the next spin in units of 1/8000 eGold, so that across all spins exactly 444/8000 of the turnover ends up in the pot – even with bets of 1 eGold.
Full bet 25 eGold – which is also the maximum bet. Three stars pay the jackpot proportionally: share = floor(jackpot × bet / 25). Whoever bets 25 eGold gets the whole amount shown on the machine, whoever bets half gets half; the rest stays for the next hit. Without this link a bet of 1 eGold would have the same chance at a pot that others filled with 25 times as much. The full bet is a fixed number; if it is ever changed, then only upwards and with notice. After a hit the pot starts again without a seed amount; three stars therefore always pay at least 15 × bet.
99.00% is an average, not a fixed value. The payout rate is the same for every bet, but depends on the jackpot:
payout rate = 7476/8000 + jackpot / (8000 × 25)
With an empty pot it is 93.45%, at 11,100 eGold – the average level – 99.00%, and above 13,100 eGold over 100%. That is not a mistake: whoever plays when the pot is high plays with money earlier players paid in. The house keeps 80/8000 of the turnover in every case.
The maximum bet also follows the limit per round: the possible win of a spin (14 × bet – the jackpot does not count, it comes from its own pot) must not exceed 1% of the bankroll.
If the machine is ever switched off, the remaining pot is raffled among all players – provably fair, with a participant list and the hash of the server seed published in advance. Who exactly takes part is announced before a shutdown. The pot is players' money; it does not expire and does not go to the house.
Coinflip
against the bank
1.00% 200 equally likely outcomes: 99 heads, 99 tails, 2 edge. You choose heads or tails; a hit pays back twice the bet, on the edge the house wins.
house edge = 1 − 2 × 99/200 = 1/100 = 1.00%
Nothing is rounded. Paying twice the bet works out on every bet without remainder – the house edge on every single bet is exactly 1.00%, even on 1 eGold. There is no minimum bet.
The throw is get_int(200, …) from the player's seed pair, as with dice: 0–98 heads, 99–197 tails, 198–199 edge. The server seed is revealed when the seeds change.
Coinflip
player vs player
1.0% (maximum) The house does not play here. Two players bet the same amount, a coin decides, the winner takes the pot minus commission. The bank carries no risk on the outcome and therefore has no interest in it – it takes the same either way.
The player who opens the match chooses heads or tails, the opponent holds the other side. The choice is fixed when the match is opened, together with the hash of the match seed – before the opponent sets their client seed – and cannot be changed afterwards. The throw is the first byte of the HMAC: even means heads, odd means tails. At 50:50 the choice changes no expected value. In matches before 9 Oct 2026, heads was the player with the lower player number.
The calculation, with E as the bet per player:
pot            = 2E
rake           = floor(pot × 1%) = floor(E / 50)
payout         = pot − rake
EV per player  = 0.5 × (pot − rake) − E = −rake/2
That is 1.0% (maximum) on your own bet, directly comparable with the numbers above.
A maximum, not a fixed value. The rake is rounded down, in the players' favour. It is exactly 1% only for bets in multiples of 50 eGold; in between it is less – at 75 eGold, for example, 1 instead of 1.5, so 0.67%.
Minimum bet 50 eGold, maximum bet 10,000 eGold. This is the only place in the house with a minimum bet, and it is not there because of risk: below 50 eGold the rounded-down rake would simply be 0.
You cannot pick your opponent. Every match stands open in the lobby and is taken by whoever accepts first. Operator and bank accounts are excluded – they can neither open nor join. The operator knows the server seed and could otherwise, as the joining player, try client seeds until he wins; no verification method protects against that, only the exclusion.
The server seed of a match carries exactly this one round and is revealed right after it – not only when seeds change. Every match can therefore be recalculated seconds later.
Poker
player vs player
Rake 1%
at most 2 big blinds
The house does not play. No-limit Texas hold'em as a cash game, two to 6 seats per table. The house only takes the rake:
rake = min(floor(pot × 1%), 2 × big blind)
from the whole pot, after uncalled bets have been returned, taken from the main pot first – and no flop, no rake. On pots under 100 eGold it rounds down to zero.
Stakes 1/2, 5/10, 25/50 eGold (small/big blind). Buy-in 20 to 100 big blinds; top up between two hands up to the maximum buy-in. The big blind moves one seat on per hand; a new player joins from the hand in which they would have to pay it.
Betting: fold, check, call, bet, raise. Smallest bet one big blind, a raise at least as large as the last one in the same round; all-in is always possible, a short all-in does not reopen the round.
Showdown: the best five-card hand out of seven, A-2-3-4-5 is the lowest straight, suits have no rank, ties split. All hands still in play are shown. Nobody wins more than they covered – beyond that a side pot is formed. An odd chip goes to the first winner left of the button; nothing is rounded.
Shuffling and dealing: one seed pair per table, whose hash is fixed before anyone sits down. The message is the seat seeds of those dealt into the hand, in ascending order of player number; the nonce counts the hands. Each hand is shuffled exactly once and dealt from fixed positions – which ones is shown on the page of every hand.
Time: 20 seconds per decision, then check if possible, otherwise fold. Whoever leaves the table or the page, the table decides for them at once until the end of the hand.
Operator and bank accounts do not sit at the table. The operator can read the table seed and so knows every card of every running hand – no method helps against that, only the exclusion.
Reveal: the table seed is changed and revealed after 100 hands or 24 hours, and also when the table closes. After that every hand of this seed can be recalculated – including the cards of those who folded. So you can see afterwards who bluffed; there is no other way to check the shuffle.
Satanio I
journey against the bank
1.0%
per camp
A journey is one round against the bank across several maps. On every map two camps wait: on the left an easy one (×1.25 or ×1.5), on the right a hard one (×2, ×3, ×5). Every camp is a bet with the amount A you currently have:
amount after    B = floor(A × factor)
survives if     get_int(100 × B) < 99 × A
                in the Fireland 98 × A
chance          = 99 × A / (100 × B)
expected value  = 99 × A / 100  →  1.0% house edge
Rounding never goes against you: where rounding down makes the amount smaller, the chance rises by exactly as much – the house edge on every camp is exactly 1.0%, even on 1 eGold. A camp that gains nothing after rounding down is not offered. There is no minimum bet.
1.0% per camp, not per journey. Whoever carries their amount through five camps pays 1.0% five times – as with dice when you keep betting your winnings. Per eGold staked it is 1.0%, as in the other games.
The offer comes from the seed, not from the server. A journey has one nonce. Map k (from 0), field f is the number from cursor k × 10,000 + f × 1,000 – get_int never discards so often that two fields share a number:
FieldNumbermeans
0get_int(5)at 0 the easy camp is a cheat – ×1, no risk
1get_int(6)which cheat: epvp-godmode.exe, epvp-noclip.exe, epvp-speedhack.exe, epvp-wallhack.exe, epvp-teleport.exe, epvp-anticheat-bypass.exe
2get_int(2)easy factor: ×1.25 or ×1.5
3get_int(3)hard factor: ×2, ×3, ×5
4get_int(6)at 0 the seer stands by the path
5get_int(10)at 0 Satan stands in the Fireland instead of the hard camp
6get_int(100 × B)outcome of the left (easy) camp
7get_int(100 × B)outcome of the right (hard) camp – against Satan get_int(100)
Everything is fixed before you set out and does not depend on the order in which you attack. Numbers 0 to 5 are drawn on every map, even where they mean nothing.
A cheat replaces the easy camp with a chance of 1 in 5 per map – ×1 without risk, the journey goes on; each of the 6 equally often. The seer offers to double the gain of both camps on the map (factor 2f − 1) or to halve it (factor (f + 1) ÷ 2) – the expected value stays the same. She stands by the path with a chance of 1 in 6 per map and only offers what still leaves a camp, a cheat or Satan, and only before the first camp of the map.
After the first camp the portal to the next map opens, and returning home takes the amount with you; before that neither is possible. Both camps of a map may be taken one after the other. An open journey returns home by itself 24 hours after the last step, with the amount; before the first camp with the bet. While a journey is running, the seed change waits.
Satan's pot. In the Fireland 1% of the amount of every camp goes into Satan's pot – that is why the chance there is 98 instead of 99 per 100; the house keeps exactly 1.0% there too. With a chance of 1 in 10 per map, Satan stands in the Fireland instead of the hard camp. Against him you stake the whole amount: 99% goes into the pot, the rest to the house. Chance 1 in 100 (get_int(100) = 0). Whoever wins gets the pot as it stood before the fight, proportionally: share = floor(pot × min(amount, 100) / 100) – from an amount of 100 eGold the whole pot. Your own amount stays in as the seed for the next one. Satan ends the journey. Fractions below one eGold are not lost: they are carried to the next time in hundredths of an eGold. The pot sits in its own account, counts as a liability of the house and is never paid out of the bankroll. When a lot is in it, a fight is worth more than it costs – that is not a mistake: it is money earlier players paid in.
Maximum win: a journey is one round. The maximum win per round is fixed when you set out and applies until the end; a camp that would go beyond it is not offered. Satan's pot does not count. The maximum bet is 2 times the maximum win – so a camp is always possible on the first map.
Recalculating – and privacy. Every finished journey has a public page with its path and its moves; after the seed change, satanio_referenz.py reise (at the bottom of this page) replays it move by move. We do not show the bet there – privacy comes first. The number drawn for a camp comes from 100 × amount and would give it away, so it is not shown either. Whoever played the journey sees their bet in their history and uses it to recalculate the whole journey, every camp and every amount. That way everyone can check that their game was fair. The offer, the seer, cheats and the fight against Satan do not depend on the amount – anyone can recalculate those, even without the bet.
Walking and clicking on monsters change nothing about the result; it is fixed when you click “Attack”. Experience and levels of the classes only unlock areas and looks, never an eGold advantage.
If Satanio is ever switched off, the remaining pot is raffled among all players – provably fair, as with the slot. The pot is players' money; it does not expire and does not go to the house.
Undetected
slot with a ladder
1%
per spin and per ladder step
Five reels, three rows, 20 fixed lines. Every reel has a strip with 32 positions. Reel w (0 to 4) stops at get_int(32) at cursor w; you see that position and the two following ones (top, middle, bottom). The strips are in undetected_referenz.py at the bottom of this page. The lines, for each reel the row (0 top, 1 middle, 2 bottom), counted from 0: 11111 00000 22222 01210 21012 10001 12221 00122 22100 12101 10121 01110 21112 01010 21212 11011 11211 00200 22022 02220
Each line pays from the left from three of a kind, in whole bets – nothing is ever rounded, and there is no minimum bet. BOT (only on reels 2, 3, 4) replaces everything except the bug; a bug breaks the line.
Symbol345
DMA5 ×10 ×25 ×
2PC3 ×8 ×15 ×
1PC2 ×5 ×12 ×
Pixel Based2 ×4 ×10 ×
ESP, 2D Radar, Triggerbot, NoRecoil1 ×2 ×5 ×
Free spins. What counts is on how many reels a bug can be seen: three bring 2, four 4, five 8 free spins. Free spin n (from 1) reads its reels at cursor n × 100 + 0 … 4, on its own strips without bug and BOT. For reels 2, 3, 4, get_int(32) is drawn at cursor n × 100 + 5 … 7: at 0 a BOT moves in on that reel if it is not a BOT reel yet, fills it and stays until the end. Speedhack starts at ×1 and rises by 1 after every free spin with a win, up to ×2; a free spin pays its lines × speedhack. Bugs in the free spins trigger no further ones.
The whole round pays at most 100 × bet (reels including free spins); once that is reached, the free spins end. Until 5 November 2026 it was at most 30 × bet, speedhack up to ×5 and 2, 5 or 10 free spins (fingerprint 566f2dbac005c9c4a0e04103dbc796d5175833130a66a733262251bfb3707d7a); every round from then keeps its rules, its page names them, and undetected_referenz.py … --fassung 30 recalculates it under those.
Exactly 1% per spin. What the reels including free spins and cap return per eGold staked is a fraction, calculated by enumerating every position: 97.5595%. Exactly 99/100 minus this fraction per eGold staked goes into the Zero Day pot, 1.4405% – with carry-over: fractions below one eGold are not lost, they are carried to the next spin. Together 99%, so 1% house edge. The rules have the fingerprint 123d5e3cf5a88a82acf45e2cc035c05d402754c01a56edc7eae885724606db23 (SHA-256 of their canonical form); python3 undetected_referenz.py fingerabdruck shows the same. On every spin the server checks that it plays exactly these rules.
Both fractions in full

Reels including free spins and cap, per eGold staked:

1092541942468384044402927870036837660414117881193934472755936993340184047385470598912485429394748297059
/ 1119872371088902105278721140284222139060822748617324767449994550481895935590080472690438746635803557888

Zero Day, per eGold staked (99/100 minus the fraction above):

403292622740725995575151471113556431402415998430426175488940290922323221217726726276223244367430631253
/ 27996809277222552631968028507105553476520568715433119186249863762047398389752011817260968665895088947200
Zero Day. Five bugs, one on every reel, pay a share of the pot on top of the free spins: share = floor(pot × bet / 25) of the pot before the spin – from a bet of 25 eGold the whole pot. The share goes straight to your balance, never onto the ladder. The pot sits in its own account, counts as a liability of the house and is never paid out of the bankroll.
The ladder. After every spin with a reel win: take it, secure half (rounded down, straight to your balance) or climb a step. Step k (from 0) draws at cursor 10,000 + k × 1,000:
ChoiceFactorpassed if ChanceExpected
subtle×1.5 get_int(100) < 66 66% 99%
blatant×2 get_int(200) < 99 49.5% 99%
rage hack×3 get_int(100) < 33 33% 99%
Every step is a bet of its own with exactly 1%. The new amount is the old one × factor; ×1.5 only works out on even amounts – with an odd one, “subtle” puts 1 eGold on the savegame and climbs with the rest. Whoever gets caught (BANNED) loses the amount on the ladder; what was secured stays. A step is offered only while the round's win afterwards stays within the maximum win; when no step is left, you are past every check and get the amount. get_int never discards so often that one step reaches into the next. The next step is drawn only when you click. An open ladder keeps the round open and the seed change waits; 24 hours after the last step it is taken by itself. Autoplay takes every win at once.
Maximum win: it is fixed with the spin and applies to the whole ladder; Zero Day does not count. The maximum bet is the smaller of 25 eGold and the maximum win ÷ 99, rounded down – so every spin fits.
Recalculating – and privacy. Every finished round has a public page with the reels, every free spin, every step of the ladder and the moves; after the seed change, undetected_referenz.py (at the bottom of this page) recalculates it with runde and stufen. We do not show the bet there – privacy comes first. The range of a step does not depend on the amount, so every drawn number is shown openly. Whoever played sees their bet in their history and uses it to recalculate every amount.
“Loading exploit …” on reel 5 only appears when reels 1 to 4 already show two bugs; the result is fixed when you click “Spin”. Experience and levels only unlock looks, never an eGold advantage.
If Undetected is ever switched off, the remaining Zero Day pot is raffled among all players – provably fair, as with the slot. The pot is players' money; it does not expire and does not go to the house.
Coverage

Coverage ratio: 9163.28%

The ratio compares the holdings of the bank account with the sum of all player balances – this includes the slot machine jackpot, because it belongs to the players. 100% means: every eGold players have in the house is covered. Absolute amounts are not shown – they say nothing about the safety of your balance, but would give away the business figures.

Limit per round. In the games against the bank the possible win of a round must not exceed 1% of the bankroll – calculated with the bankroll rounded down to a full 5,000 eGold. When you are signed in, you see the limit at the game before you bet; exactly this number is checked. It only changes in steps and so does not reveal the bankroll exactly. In coinflip the house carries no risk, so it does not apply there.

Measured: the holdings are queried from the forum every hour and checked against the house's own books. Only what can actually be paid out is counted. As of 2026-11-24 08:50:06 UTC.

Slot machine jackpot

Jackpot now: 94 eGold · payout rate at this level: 93.49%
Never hit yet.

These two amounts – with the two of Satan's pot – are the only ones on this page: a jackpot nobody sees is no jackpot. Older hits disappear as soon as a new one lands. The round of a hit can be recalculated like any other, without bet and payout.

Satan's pot (Satanio I)

Satan's pot now: 0 eGold
Satan has never been defeated yet.

As with the slot jackpot, exactly two amounts are shown here: the current pot and the one last won. Older wins disappear as soon as a new one lands. The journey of a win can be recalculated like any other, without bet and payout.

Zero Day (Undetected)

Zero Day now: 56 eGold
last cracked: 14 eGold on 2026-11-02 10:33:50 UTC (round #5356)

As with the slot jackpot, exactly two amounts are shown here: the current pot and the one last cracked. Older ones are no longer shown once a new one lands. The round is linked as soon as its ladder has ended and can be recalculated like any other, without bet and payout.

Latest rounds against the bank
RoundPlayerResultNonceSeed
#7539 Player #34 throw 148 · tails · on heads · loss 10 revealed
#7538 Player #34 throw 35 · heads · on heads · win 9 revealed
#7537 Player #34 throw 103 · tails · on heads · loss 8 revealed
#7536 Player #34 throw 6 · heads · on heads · win 7 revealed
#7535 Player #34 Positions 4, 12, 18 · C B C · Smallest (two of a kind) 6 revealed
#7534 Player #34 Positions 6, 9, 0 · L ★ C · no hit 5 revealed
#7533 Player #34 Positions 15, 12, 7 · L B C · no hit 4 revealed
#7532 Player #34 Positions 1, 13, 5 · L C 7 · no hit 3 revealed
#7531 Player #34 Positions 10, 11, 11 · C L L · Smallest (two of a kind) 2 revealed
#7530 Player #34 Positions 17, 7, 17 · B C B · Smallest (two of a kind) 1 revealed
#7528 Player #34 throw 153 · tails · on heads · loss 0 revealed
#7527 Player #33 Dealer A♣ 8♥ (19) · bust 9 revealed
#7526 Player #33 Dealer 3♣ 4♦ 6♥ 7♥ (20) · lost 8 revealed
#7525 Player #33 Dealer A♣ 2♣ Q♣ 9♠ (22, bust) · won 7 revealed
#7524 Player #33 Dealer 4♦ 7♠ 9♠ (20) · push 6 revealed
#7523 Player #33 Dealer 10♦ 2♣ 7♥ (19) · lost 5 revealed
#7522 Player #33 Dealer J♠ J♦ (20) · bust 4 revealed
#7521 Player #33 Dealer 2♣ 2♦ (4) · bust 3 revealed
#7520 Player #33 Dealer 5♠ J♥ 8♦ (23, bust) · won 2 revealed
#7519 Player #33 Dealer 3♥ K♣ 3♦ 9♦ (25, bust) · won 1 revealed
#7518 Player #33 Dealer 8♥ 10♦ (18) · bust 0 revealed
#7516 Player #32 95.96 · under 90.00% · loss 12 revealed
#7515 Player #32 94.75 · under 90.00% · loss 11 revealed
#7514 Player #32 61.60 · under 90.00% · win 10 revealed
#7513 Player #32 64.46 · under 90.00% · win 9 revealed
#7512 Player #32 50.40 · under 90.00% · win 8 revealed
#7511 Player #32 6.65 · under 90.00% · win 7 revealed
#7510 Player #32 78.11 · under 90.00% · win 6 revealed
#7509 Player #32 67.25 · under 90.00% · win 5 revealed
#7508 Player #32 44.65 · under 90.00% · win 4 revealed
#7507 Player #32 58.10 · under 90.00% · win 3 revealed
#7506 Player #32 93.39 · under 90.00% · loss 2 revealed
#7505 Player #32 74.92 · under 90.00% · win 1 revealed
#7504 Player #32 75.24 · under 90.00% · win 0 revealed
#7503 Player #6 16.26 · over 68.75% · loss 9 revealed
#7502 Player #6 17.80 · over 69.60% · loss 8 revealed
#7501 Player #6 34.93 · over 68.75% · win 7 revealed
#7500 Player #6 79.28 · over 49.50% · win 6 revealed
#7499 Player #6 90.17 · over 49.50% · win 5 revealed
#7498 Player #6 7.26 · over 49.50% · loss 4 revealed
#7497 Player #6 34.64 · over 49.50% · loss 3 revealed
#7496 Player #6 25.14 · over 49.50% · loss 2 revealed
#7495 Player #6 85.70 · over 71.50% · win 1 revealed
#7494 Player #6 80.08 · over 72.00% · win 0 revealed
#7493 Player #29 Dealer K♠ 6♠ 5♠ (21) · lost 18 revealed
#7492 Player #29 Dealer 2♦ 3♥ 4♥ 8♦ (17) · won 17 revealed
#7491 Player #29 reels 1 × bet · taken 16 revealed
#7490 Player #29 reels 1 × bet · BANNED · Client check 15 revealed
#7489 Player #29 reels 2 × bet · 2 free spins · BANNED · Client check 14 revealed
#7488 Player #29 reels 2 × bet · taken after 2 steps 13 revealed

Every round here is finished. “Still secret” means: the server seed is not revealed yet. It is revealed when the player changes their seed, at the latest after 100 rounds or 24 hours on the same seed – then the server changes it itself. From then on the round can be recalculated; before that the seed would give away the following rounds.

Bets and payouts are deliberately not shown here: they are not needed to recalculate a round, and from them the house's turnover could be worked out. Every player sees their own amounts after signing in.

Latest player vs player matches

No PvP match played yet.

Latest rounds at roulette tables
RoundTableSeatedNumberSeed
#1 1 Player #4 23 revealed

A table round is a round with several seats. Its message is made of the seat seeds of everyone seated at “No more bets”, joined in ascending order of player number – it is enough for one player to change their seed, then the spin is different for everyone. The table seed is revealed at rotation (after 100 rounds or 24 hours) or when the table closes. Bets and payouts are not shown here either.

A limit: whoever knows the table seed could, as a fellow player, choose their own seat seed so that the number falls against the others. That is why operator and bank accounts cannot sit at a table. Against an operator playing with someone else's account, no method protects at a shared wheel; in a solo spin only your own seed counts.

Revealed table seeds
TableServer seedHashRoundsRevealed
1 05efc8a25898563eec7eebae13f0a160509d5baf8ffd9bfb2d26854974202e1a b15b38a80da70dc89139ee5f7b18fcbbee2e0ef0f1472d9b81e9bd9235e1883b 1 2026-10-07 20:20:15 UTC
Latest rounds at blackjack tables
RoundTableSeatedDealerSeed
#100 4 Player #28 K♥ K♣ · 20 revealed
#99 4 Player #28 2♣ 4♣ Q♦ A♠ · 17 revealed
#98 4 Player #28 4♥ 10♥ K♣ · 24 (bust) revealed
#97 4 Player #28 8♥ 5♦ 5♠ · 18 revealed
#96 4 Player #28 8♦ J♣ · 18 revealed
#95 4 Player #28 J♦ 6♠ · 16 revealed
#94 4 Player #28 6♦ A♦ 10♠ · 17 revealed
#93 4 Player #28 7♣ Q♥ · 17 revealed
#92 4 Player #28 9♣ 5♦ 5♠ · 19 revealed
#91 4 Player #28 2♠ 4♣ J♣ Q♦ · 26 (bust) revealed
#90 4 Player #28 7♣ J♣ · 17 revealed
#89 4 Player #28 10♦ K♣ · 20 revealed
#88 4 Player #28 8♥ Q♥ · 18 revealed
#87 4 Player #28 Q♠ 4♠ 2♣ 5♦ · 21 revealed
#86 4 Player #28 7♦ 7♠ 9♣ · 23 (bust) revealed
#85 4 Player #28 10♣ 5♥ · 15 revealed
#84 4 Player #28 3♦ A♥ J♥ 9♣ · 23 (bust) revealed
#83 3 Player #10 2♦ K♣ 7♠ · 19 revealed
#82 3 Player #10 10♥ 7♥ · 17 revealed
#81 3 Player #10 10♦ 3♦ · 13 revealed
#80 2 Nivea Soft Q♥ 2♠ · 12 revealed
#79 2 Nivea Soft A♠ 4♣ 7♦ 9♣ · 21 revealed
#78 2 Nivea Soft A♥ 10♥ · 21 revealed
#77 2 Nivea Soft 3♣ J♠ K♦ · 23 (bust) revealed
#76 2 Nivea Soft 8♦ K♠ · 18 revealed
#75 2 Nivea Soft 8♠ J♠ · 18 revealed
#74 2 Nivea Soft 6♣ K♣ 9♥ · 25 (bust) revealed
#73 2 Nivea Soft 6♠ K♦ · 16 revealed
#72 2 Nivea Soft 10♣ J♥ · 20 revealed
#71 2 Nivea Soft 7♠ A♣ · 18 revealed
#70 2 Nivea Soft K♦ 2♥ · 12 revealed
#69 2 Nivea Soft 7♥ 9♦ · 16 revealed
#68 2 Nivea Soft J♠ 3♥ A♥ 6♣ · 20 revealed
#67 2 Nivea Soft 9♦ 3♥ · 12 revealed
#66 2 Nivea Soft J♠ 9♠ · 19 revealed
#65 2 Nivea Soft 5♠ K♠ Q♥ · 25 (bust) revealed
#64 2 Nivea Soft 6♣ 7♠ 9♠ · 22 (bust) revealed
#63 2 Nivea Soft Q♥ 7♠ · 17 revealed
#62 2 Nivea Soft A♠ 8♥ · 19 revealed
#61 2 Nivea Soft Q♣ 7♥ · 17 revealed
#60 2 Nivea Soft K♥ A♣ · 21 revealed
#59 2 Nivea Soft J♣ 4♥ 3♣ · 17 revealed
#58 2 Nivea Soft Q♦ 7♥ · 17 revealed
#57 2 Nivea Soft K♦ A♠ · 21 revealed
#56 2 Nivea Soft 5♦ Q♣ 7♥ · 22 (bust) revealed
#55 2 Nivea Soft J♠ J♦ · 20 revealed
#54 2 Nivea Soft J♦ A♠ · 21 revealed
#53 2 Nivea Soft J♦ 7♦ · 17 revealed
#52 2 Nivea Soft J♥ 3♦ 10♦ · 23 (bust) revealed
#51 2 Nivea Soft 5♥ 8♥ 7♣ · 20 revealed

A blackjack table round is a round with several seats and one shoe. The message is made of the seat seeds of everyone seated at the deal – including those who did not bet –, joined in ascending order of player number. The shoe is shuffled from it exactly once. The table seed is revealed at rotation (after 100 rounds or 24 hours) or when the table closes. Bets and payouts are not shown here either.

Revealed table seeds
TableServer seedHashRoundsRevealed
4 8d07409025c6733ef4eb67602d29b99730a4e802edbb25a875af1cc919d1e5c0 5605192dad306f5625a1b2fd82f778518e82b7c1fe9893e7ae2375cbd9f14c16 17 2026-11-01 20:41:25 UTC
3 16fd4e1db818810bc39642244f75abb04ccc9d0b21fe657688147ea446263d52 6ea0de9778a8cfb3515a8f707170ef0c58154d5827478acd752defbd2d5c8540 3 2026-10-13 19:26:08 UTC
2 7ab4808aab501215d85117de302f9a39c814f719f7fbd62e9e5882870176802e 0e62a0756cc51e20d05e22559aca2b965cbf167e922cfe9d199751c28348e0f7 78 2026-10-13 06:09:59 UTC
Latest hands at poker tables

No hands at the poker tables yet.

Every hand has its own page: who was seated, with which seat seed, the board, the showdown hands and who won which pot – without amounts. Once the table seed is revealed (after 100 hands, 24 hours or when the table closes), it also shows the cards of those who folded, and a piece of Python that recalculates everything.

Revealed server seeds
RevealedPlayerRoundsServer seed and hash
2026-11-20 17:35:05 UTC Player #34 11 242d771dba4b963a0c912278460cdcd9dffddd501be38ab23d68a21ab0952e28
e980d3625c75c29cf7abb404a6c750cb8f9f7457e4f60a4df535eadf0bf3aa5f
2026-11-20 13:53:46 UTC Player #33 10 096a74a65049ffcf3fc6228002e06fe4aa40cd7944e7c5bbe8922e95effae348
fdcbd25b6f941293ef59faad4cebab844c8991a6fe05c52079425fc37384ecef
2026-11-15 17:00:34 UTC Player #32 13 affef8e077d8020af0ab43e84d68a9190753af953bb3dd7eb4c0bca5e086b69c
d8a35334e388ff8ded7f3f44b2a220770edc97f9d6d3c5ed9422fa1624a2946e
2026-11-12 13:46:37 UTC Player #6 10 b518e2a81a1d3832961a3a6ec1412778407ff87c142f0c04ba438d4832b13e34
9ab5fac32a68ea3a4de89815be273187204b3ce72d4028771beac05338899dfc
2026-11-12 10:01:37 UTC Player #29 19 38abc36be7fb16af6ffd6582c4919154961e804774fae2c7ba0693f7c741d6d0
5d54b4e7d78ab78209bbb9725b4879475b0c1aadffb3f8b96b9c13df05e56793
2026-11-09 08:31:37 UTC Player #24 1 36e8bd913ee43792f1f1abcd804e9db520c94f3d53e799e30ca1dfe1d8be1d87
13febc2685d83499be41c8fdba2477ba897a9838fc352eeb300e5333e3631537
2026-11-09 03:31:37 UTC Player #30 2 1f26c486d55fe84ecaac33fc537567ee1f8484fd1a38691de98620e9275d83a5
b51eb5473a3fd99ae53524f9cb0115daf1bef676ddc1eb7efac9f7101de0fa4d
2026-11-08 15:01:37 UTC Player #6 21 e156c8442044085efda15a4e405d818d96a3356c0cc867d9a55dd071ffdacafd
d04a50a3604c37e261a2c6af3fd47e2ae0d58cdc01cb9d86368ea1012bac4ebb
2026-11-08 08:31:37 UTC Player #24 15 a6a0c374e95ce9a2cbd4b5d6babd39a43399fb89d8d35e7a7ad1476610f894e4
299235191fe6eb577a362c71e896c21251d81e00ed7ec5def67a6bdd1ed8447e
2026-11-08 03:31:37 UTC Player #30 126 5690e2c2a8f214f251b1d591c4f53f591bb32f2c6152df732fd173647d55643e
c604a03e0b03a39128fc759992c4ade77c99309cba10283c603ab2e2942d7332
2026-11-07 15:01:37 UTC Player #6 623 484820b88ce0bb8d720e03f394605e8dbfbc187e77edfee0f1c9b5abdd446987
ed6f02154ffb778489da34707b4852da2f2f260f25c1a4e828ecf1b5d45738f8
2026-11-07 14:30:46 UTC Player #6 165 cbc08dcf6771de1112b46086ca4bdbccfe770b1a74eb4250b69871bc3d4681b1
88cb400d631b376b939ee4e5b641692e24e0bfc38164a2048fd6d0e59bf0f6df
2026-11-07 14:15:46 UTC Player #6 68 4e04b00371c7042d19d8b71271a7752913d02d3e59cb4544ce7276cca21c9a52
d8646c19e080217ad0d7021ab49c0c2c4d4f5d7a98660a6551a6b9d51ef7ea91
2026-11-05 10:26:10 UTC Player #29 145 4b562423e3502785d93b64a6532cf8564c24471aad96145f717d59cf49d8dfc2
ba22cde5160dc51ffcbccb308eac2444cba4dd393a6c97b4c49b6ecceae155f2
2026-11-05 09:26:10 UTC Player #29 131 eaf185763e2a7ff19e683319ba03f968a28b9fcc25b493d1aeef4ed9e0a646d9
875b439d960649621d993b46f47cf5eab2243f3ebfa675f933397a8ba90f66f2
2026-11-04 11:11:10 UTC Player #6 1 832da1fcd60d1d35f558d0db4b9fff64d996ea6eed2119a120c13b3c11b3294f
32235e5af2111653a0e80c6c96a7285decf941ec1bf0f29f67c13d441dff8f89
2026-11-03 11:11:10 UTC Player #6 72 dc088592da01e04b140cf0a4ae75058998b7a78f039e2489fdd98f83e1f77c1e
1d6c9b6fbb1ccffc3d9d73d28ffec7188f2fd06ef77da10a8af10fb8ed83eb02
2026-11-02 20:35:02 UTC Player #28 1 7722a2996e4f849112ebdfe38600f1cf082138d7b7b08d2640a8f14f0b50efcb
869eb165293cbb78730486e875f61d4d0c90d3bbeb9830f98d2a78a15c9921ee
2026-11-02 11:05:02 UTC Player #6 562 eeae734424d11c5f550c724817f037efc41aa96089c20ec93353cbaacc98692e
97a78cc6bd0892abefdcddf726bae74eb2d7b646f5d47b6c29a7fa7da600b54c
2026-11-02 10:50:02 UTC Player #6 173 8aa3d74f7f0b2a2ab9c04e4d381e62e55ebb1a56fad60448d2f431ef48051728
f5e76df29891b8ac062ac95bec5651b762c2d5f7a9e9e21fc1083ef2d3bc0e3d
2026-11-02 10:35:02 UTC Player #6 125 c21fc748e4d22251d8ceab70a0407b0d427433c42593f7fa87b0657e565fa4ea
f88c0d20d413a975bf5fc705e31341d672d17bde28c57aa53def57f40aec2378
2026-11-01 21:35:02 UTC Player #6 131 da15ab8d1e68e1f949116e6e64180ece0fa736d7cb85a0170d14d499fef2efb8
8c8000f34def836752dd7c012d960c8cf3b2d053d90d9becb36f44fb670fb682
2026-11-01 20:50:02 UTC Player #6 109 9a406d9e65d056243b98a736ae60588d1976ec5b5351f3812f7fecc9b907d58a
90d35002bcc4ede02b215090c034fb21fad7c2e517763b781371d375dfca1670
2026-11-01 20:20:02 UTC Player #6 113 b00f74a4634c2d0e24af554336bca648a522abf8f3bafd0e0cadd43f99c89bdd
b28dcab8407fb477e044d2846c8a0e722390982fcce0284c08fe6d131b5ed7ae
2026-11-01 11:50:02 UTC Player #26 24 39d87f7ddc491c468a584226b71a6a3eeeb70880fe5cff315a2f441cbc1a61da
960b2681d7c16bdff465c4ccd9cbd705463716baf582e75b18951c174430e835
2026-10-31 20:21:36 UTC Player #6 2 4f13d6d338ba0a7c09a79369984d7b669cf46fb3ca5096750cddfca8b4562188
36805c96def1b098aab9ec8313a36b381ad021957a580495da00369aa23670d2
2026-10-30 20:08:49 UTC Player #6 10 4c01f711bf9c9327ac199646546b429eb648b91c5a9e1d9719eab34cdca4c4e5
10dd866be0734aebf5bf0322e8a17506cd1f8bc7cae6e7404c27eff1337b24d7
2026-10-30 18:03:03 UTC Player #25 56 18489d353ee1daa4e250955fd2684435b5f1c0701764cea0b80e22ee559299bc
04485b1dae8140ec4c8d1d7a8cd8773a4a5847fdc5822d645af09e7bf30d3dfe
2026-10-30 15:33:03 UTC Nivea Soft 265 6723f78bc44499bc1686465aabab00b6d9fb289b290abff44226cc2e2da404a6
faf0b26cff173a86487e34d87ab15186c60981cbc71367d3f8c8d2967ab78974
2026-10-29 15:27:59 UTC Player #6 3 dc3df0b5034ef3763a820f221f3bd45819246e58297f56e59305a4063cef5c37
fe4cb7c4a760ec0161f3a569ce50b64788f267d950f3a143a44bf89eb762b629
2026-10-29 15:22:24 UTC Player #6 88 8ce9697d2b126584cd2e789507ef1e0d1d771e7e8bfc3471877b3b0bc38881cd
5bb401d56d34ff8fe4f27e2a51327ef95dab600b6168eb9de22ca0eeda5678c4
2026-10-29 15:13:14 UTC Player #6 3 bc23e5e203177210d84882d81c66b2fc3bf97e2deb0f56da1824c17720650ea0
4022cadc9f1cb4fa9342ec0a6b1fd48d35e32853d244e9582e9353903d50fc62
2026-10-29 15:12:43 UTC Player #6 4 18c7f68ca7cc20b3af9af91fa2b809d8650db71cca5fe0ccbaec77ab670783a0
91b2817ee11de6770e59676bea35a1053109eb16ee2a12f0b4eb3cbb21e60bf0
2026-10-29 15:12:07 UTC Player #6 8 ab62710d6b7437088b379288dcba962f016a54cec53a2b366751247b0c3a198a
9975925a50060e56f7ed46009e87c890577532e3a871f7245d83647e763e2fe9
2026-10-29 15:10:33 UTC Player #6 51 c83c6c377efc79e4c60e342cba8b4e473194f269f433983c4444ba0b6a042c56
aa367d7da63f3fe3e1a5ffe64b851046a7d7119c4222c11f9c22516b5b2865a5
2026-10-28 19:40:05 UTC Player #6 13 cac2191a4f9acb729b57eac458a5ad5ead9ead696d352282104f86252c41ff02
08b5f6e0fa49fc9d7f3d15639178763b28ccf2b0cf77ea03925bb12ac6572be7
2026-10-28 19:38:51 UTC Player #6 7 2b6aa28c6f815b0d02041291d715efbf680cffa03534e124f4cc8aaaa18fdd26
b0f3341975d336a6569b7e7e5cbba72460fd1ea58adfaadbb9bb7e171c0f721c
2026-10-28 10:53:51 UTC Player #1 92 31bbbac5909a0d8dfe23ed54db7c693aacba8539cf47061dd65eaf39c6b0a935
598f75f9fd838f54eea0ffc6431b7896be7e6fe46b337bc4eaa37460fc3ba6bf
2026-10-28 10:23:51 UTC Player #24 3 8e86c59362d06d057ebae6304ff3a67cd51baeda7252e965b7aed509ef2ba8c5
e17585c51b94ea4b3850c721566340720f788ec550c9227a91dd5388c7c9e7fc
2026-10-26 17:38:51 UTC Nivea Soft 65 6641176fa56206a30c90771bcca232f03e045c5a3eb7c727cc78e048e3d1489a
c6535fb8f35c85a5b8252a383965c4ea019596e7ebaed67ac4b399d07ca004df
2026-10-25 07:38:51 UTC Player #23 1 cd2842c76b522a9347ade01c77cc4422a4f1aa8f63fe61d23a9a5f995b5b6959
ca1d774315106a6adb9b3ec8c3bc73d5b871bb02bac68e353033f3b9ac3c07f2
2026-10-24 11:38:51 UTC Player #6 6 51b50e1bea56595b035973afae3f0b607a0c90745a5ed5e8a9315878d784144c
53252a648f6521552cf60389ec2c22c9fe3407e7c2641a32761d945b1b7657bf
2026-10-23 23:07:31 UTC Player #22 121 81cb6f61af97da7004ed8d2912f56528effd392a1250c19d0b3d5197e406fb9c
a093f5bf58b3bc9f16204bbe7d1d43854e580260c890e671a1ff015535a7d377
2026-10-23 11:32:52 UTC Player #6 122 5a878929edde676064100cb76d33decc5a8a44ef55c17b91b835626b6c16809c
b52f9b7ca70d732ba8b9a0101b079a60084751eb6e8929b2097e256264c1186b
2026-10-23 11:02:52 UTC Player #6 210 e40d8584c15db1a953b0977b4389851e0edc2ba08312dd4d91bb80a7fdb8fc8e
a873726cf166825ce8785e569f2f76b6e4d663c3146e55ed268eac318098ee7f
2026-10-20 12:43:42 UTC Player #16 28 30a5e4a06c13a1226e5a81304aa1297c64e015ac7e6380b95738f396d002bd3b
3987144f72006104977349ba4ad5ee1abcfb206b4d64720c079567c3661e019a
2026-10-18 22:00:17 UTC Player #11 2 6624174d1109f397e27ecf04eaa186e290f0cad7568d445f7f8c6a3bb46f8675
4e2849e8521c6dae25297108b16cb9dc5f5c8fd057084bb5b6ad8560d3a24f02
2026-10-16 23:33:42 UTC Player #13 1 94a92fcfd8d2f642c842ea94577e5d05694cb19630ddb163a3253af0f52c4d7c
7f839a8db9478361773529a48aace4837ecb16a49bb2ab65efaa0f1a4a80a3cf
2026-10-16 15:33:42 UTC Nivea Soft 505 9ec1b455705b6d8acb2bfc50c2b851ad0acc349f1c173efe4d17d6d63f913bed
cbeccb09e8f5e7336aa3df8e5e0ae84cec9cefc68a20a97b41881afbd96d9ecb
2026-10-16 15:18:42 UTC Nivea Soft 1373 e72886610d0e9394cce23fdbbdc5da00434488dfec51a2299c0fcde2ff828f92
b5b6c5ab990251c7d97e73f9543012de28b988e2489b0bab422ed141d782c89a
The calculation in plain text

This file is the independent second implementation of the procedure. It was written from the specification, not translated from the application code, and demonstrably gives the same results. Save it, run it, recalculate yourself – all it needs is Python. Its comments are in German; the code itself needs no translation.

#!/usr/bin/env python3
"""
Unabhaengige Zweitimplementierung des Provably-Fair-Verfahrens.

Eine unabhaengig geschriebene Zweitimplementierung muss dieselben Ergebnisse
liefern wie das Casino. Sinn der Sache ist, dass ein Denkfehler nicht in
beiden Implementierungen gleich ausfaellt. Deshalb ist diese Datei aus der
Beschreibung des Verfahrens geschrieben, nicht aus dem TypeScript-Code
uebersetzt, und sie teilt mit ihm keine einzige Hilfsfunktion.

Sie ist zugleich das Stueck Code, das auf der Transparenzseite im Klartext
steht: kurz genug, dass ein Aussenstehender es liest, und in einer Sprache,
die er ohne Projekt-Setup ausfuehren kann.

Aufruf:
    python3 tools/referenz.py vektoren      # Testvektoren als JSON
    python3 tools/referenz.py pruefe FILE   # Eingaben pruefen, Ergebnis als JSON
"""
import hashlib
import hmac
import json
import sys


def raw(server_seed: str, client_seed: str, nonce: int, cursor: int) -> bytes:
    """HMAC_SHA256(key = serverSeed, message = "<clientSeed>:<nonce>:<cursor>").

    Der Schluessel ist der Server-Seed **als Zeichenkette**, nicht die aus dem
    Hex dekodierten Bytes. Wer nachrechnet, fuegt den Seed genau so ein, wie
    er offengelegt wurde.
    """
    message = f"{client_seed}:{nonce}:{cursor}"
    return hmac.new(server_seed.encode("utf-8"), message.encode("utf-8"), hashlib.sha256).digest()


def get_float(server_seed: str, client_seed: str, nonce: int, cursor: int) -> float:
    """Gleitkommazahl in [0,1) aus den ersten vier Bytes.

        b0/256 + b1/256^2 + b2/256^3 + b3/256^4

    Vier Bytes, weil das Verfahren von Hand nachrechenbar bleiben soll.
    """
    b = raw(server_seed, client_seed, nonce, cursor)
    return b[0] / 256 + b[1] / 256**2 + b[2] / 256**3 + b[3] / 256**4


def _bytes_needed(spanne: int) -> int:
    return max(1, ((spanne - 1).bit_length() + 7) // 8)


def get_int(spanne: int, server_seed: str, client_seed: str, nonce: int, cursor: int):
    """Ganzzahl in 0..spanne-1 ohne Modulo-Bias.

    Es werden so viele Bytes gelesen, wie die Spanne braucht. Faellt der
    Rohwert in den Rest, der sich nicht gleichmaessig aufteilen laesst, wird
    er **verworfen** und mit erhoehtem Cursor neu gezogen. Genau dieses
    Verwerfen macht das Ergebnis gleichverteilt.

    Rueckgabe: (wert, naechster_cursor). Der Cursor wandert auch bei jedem
    verworfenen Versuch weiter, damit ein Pruefer den Ablauf nachvollziehen
    kann.
    """
    if spanne < 1:
        raise ValueError("Spanne muss mindestens 1 sein")
    if spanne == 1:
        return 0, cursor + 1

    k = _bytes_needed(spanne)
    topf = 256**k
    grenze = topf - (topf % spanne)

    while True:
        wert = int.from_bytes(raw(server_seed, client_seed, nonce, cursor)[:k], "big")
        cursor += 1
        if wert < grenze:
            return wert % spanne, cursor


def shuffle(anzahl: int, server_seed: str, client_seed: str, nonce: int, cursor: int = 0):
    """Fisher-Yates ueber 0..anzahl-1. Genau einmal je Runde (R8).

    Rueckgabe: (reihenfolge, naechster_cursor).
    """
    deck = list(range(anzahl))
    for i in range(anzahl - 1, 0, -1):
        j, cursor = get_int(i + 1, server_seed, client_seed, nonce, cursor)
        deck[i], deck[j] = deck[j], deck[i]
    return deck, cursor


def server_seed_hash(server_seed: str) -> str:
    return hashlib.sha256(server_seed.encode("utf-8")).hexdigest()


# ---------------------------------------------------------------------------

SEED_A = "0000000000000000000000000000000000000000000000000000000000000000"
SEED_B = "a3f1c9d4e5b6072839a0b1c2d3e4f5061728394a5b6c7d8e9f0a1b2c3d4e5f60"


def vektoren():
    out = {"hash": [], "raw": [], "float": [], "int": [], "shuffle": []}

    for seed in (SEED_A, SEED_B):
        out["hash"].append({"serverSeed": seed, "hash": server_seed_hash(seed)})

    faelle = [
        (SEED_A, "spieler-1", 0, 0),
        (SEED_A, "spieler-1", 0, 1),
        (SEED_A, "spieler-1", 1, 0),
        (SEED_A, "", 0, 0),
        (SEED_B, "ProbeTestet", 42, 7),
        (SEED_B, "a-b_c", 999999, 123),
    ]
    for seed, client, nonce, cursor in faelle:
        out["raw"].append({
            "serverSeed": seed, "clientSeed": client, "nonce": nonce, "cursor": cursor,
            "raw": raw(seed, client, nonce, cursor).hex(),
        })
        out["float"].append({
            "serverSeed": seed, "clientSeed": client, "nonce": nonce, "cursor": cursor,
            "value": repr(get_float(seed, client, nonce, cursor)),
        })

    for spanne in (2, 6, 37, 52, 200, 312, 10_000):
        wert, folge = get_int(spanne, SEED_B, "ProbeTestet", 42, 0)
        out["int"].append({
            "range": spanne, "serverSeed": SEED_B, "clientSeed": "ProbeTestet",
            "nonce": 42, "cursor": 0, "value": wert, "cursorNext": folge,
        })

    for anzahl in (5, 52, 312):
        reihenfolge, folge = shuffle(anzahl, SEED_B, "ProbeTestet", 42, 0)
        out["shuffle"].append({
            "count": anzahl, "serverSeed": SEED_B, "clientSeed": "ProbeTestet", "nonce": 42,
            "order": reihenfolge, "cursorNext": folge,
        })

    return out


def pruefe(pfad):
    with open(pfad, encoding="utf-8") as fh:
        eingaben = json.load(fh)

    ergebnisse = []
    for e in eingaben:
        seed, client, nonce, cursor = e["serverSeed"], e["clientSeed"], e["nonce"], e["cursor"]
        eintrag = {
            "raw": raw(seed, client, nonce, cursor).hex(),
            "float": repr(get_float(seed, client, nonce, cursor)),
        }
        if "range" in e:
            wert, folge = get_int(e["range"], seed, client, nonce, cursor)
            eintrag["int"] = wert
            eintrag["cursorNext"] = folge
        if "shuffleCount" in e:
            reihenfolge, folge = shuffle(e["shuffleCount"], seed, client, nonce, cursor)
            eintrag["shuffle"] = reihenfolge
            eintrag["shuffleCursorNext"] = folge
        ergebnisse.append(eintrag)

    return ergebnisse


if __name__ == "__main__":
    befehl = sys.argv[1] if len(sys.argv) > 1 else "vektoren"
    if befehl == "vektoren":
        print(json.dumps(vektoren(), indent=2))
    elif befehl == "pruefe":
        print(json.dumps(pruefe(sys.argv[2])))
    else:
        print(__doc__)
        sys.exit(1)

Poker: dealing and hand evaluation

poker_referenz.py sits next to the file above and uses its shuffle. It reads the cards at the dealing positions and evaluates hands – deliberately built differently from the casino: it tries every five-card combination.

#!/usr/bin/env python3
"""
Poker – unabhängige Zweitimplementierung.

Mit diesem Programm rechnet jeder eine Pokerhand nach, ohne dem Casino zu
glauben: Stapel mischen (mit referenz.py), Karten an den öffentlichen
Positionen ablesen, Hände bewerten. Es ist absichtlich anders gebaut als
src/games/poker.ts: Es probiert alle Fünferkombinationen durch und
vergleicht Tupel, statt mit Bitmasken zu rechnen.

    python3 poker_referenz.py austeilen <server_seed> <client_seed> <nonce> <spieler>
    python3 poker_referenz.py bewerte <datei.json>      # Liste von Kartenlisten

Karten sind Zahlen 0..51: Rang = Karte % 13 (0 = Ass, 9 = Zehn, 10..12 =
Bube, Dame, König), Farbe = Karte // 13 (♣ ♦ ♥ ♠). Beim Poker zählt das Ass
14, in der Straße A-2-3-4-5 als Eins.
"""
import itertools
import json
import os
import sys
from collections import Counter

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from referenz import shuffle  # noqa: E402

KATEGORIEN = [
    "high_card", "paar", "zwei_paare", "drilling", "strasse",
    "flush", "full_house", "vierling", "straight_flush",
]


def rang(karte):
    r = karte % 13
    return 14 if r == 0 else r + 1


def strasse_hoch(raenge):
    """Höchste Karte einer Straße aus fünf verschiedenen Rängen, sonst 0."""
    s = sorted(set(raenge))
    if len(s) != 5:
        return 0
    if s[4] - s[0] == 4:
        return s[4]
    if s == [2, 3, 4, 5, 14]:
        return 5
    return 0


def fuenf(karten):
    """(Kategorie, fünf Ränge) einer Fünf-Karten-Hand."""
    raenge = [rang(k) for k in karten]
    farben = {k // 13 for k in karten}
    flush = len(farben) == 1
    hoch = strasse_hoch(raenge)
    # Gruppen nach (Anzahl, Rang), größte zuerst
    gruppen = sorted(Counter(raenge).items(), key=lambda kv: (kv[1], kv[0]), reverse=True)
    anzahl = [n for _, n in gruppen]
    werte = [r for r, _ in gruppen]

    def auf5(liste):
        return (list(liste) + [0, 0, 0, 0, 0])[:5]

    if flush and hoch:
        return 8, auf5([hoch])
    if anzahl[0] == 4:
        return 7, auf5(werte[:2])
    if anzahl[0] == 3 and anzahl[1] == 2:
        return 6, auf5(werte[:2])
    if flush:
        return 5, sorted(raenge, reverse=True)
    if hoch:
        return 4, auf5([hoch])
    if anzahl[0] == 3:
        return 3, auf5(werte[:3])
    if anzahl[0] == 2 and anzahl[1] == 2:
        return 2, auf5(werte[:3])
    if anzahl[0] == 2:
        return 1, auf5(werte[:4])
    return 0, sorted(raenge, reverse=True)


def bewerte(karten):
    """Beste Hand aus fünf bis sieben Karten: [Kategorie, Ränge]."""
    if not 5 <= len(karten) <= 7 or len(set(karten)) != len(karten):
        raise ValueError("5 bis 7 verschiedene Karten")
    beste = max(fuenf(c) for c in itertools.combinations(karten, 5))
    return [KATEGORIEN[beste[0]], beste[1]]


def positionen(n):
    """Austeilen ab links vom Button, zweimal herum; je eine Karte verbrannt vor Flop, Turn, River."""
    return {
        "loch": [[i, n + i] for i in range(n)],
        "flop": [2 * n + 1, 2 * n + 2, 2 * n + 3],
        "turn": 2 * n + 5,
        "river": 2 * n + 7,
    }


def austeilen(server_seed, client_seed, nonce, n):
    deck, _ = shuffle(52, server_seed, client_seed, nonce, 0)
    p = positionen(n)
    return {
        "loch": [[deck[a], deck[b]] for a, b in p["loch"]],
        "board": [deck[x] for x in p["flop"] + [p["turn"], p["river"]]],
    }


def main(argv):
    if len(argv) >= 2 and argv[1] == "bewerte":
        with open(argv[2], encoding="utf-8") as f:
            haende = json.load(f)
        print(json.dumps([bewerte(h) for h in haende]))
        return 0
    if len(argv) == 6 and argv[1] == "austeilen":
        print(json.dumps(austeilen(argv[2], argv[3], int(argv[4]), int(argv[5]))))
        return 0
    print(__doc__)
    return 2


if __name__ == "__main__":
    sys.exit(main(sys.argv))

Satanio I: replaying a journey

satanio_referenz.py also sits next to the file above and uses its get_int. It calculates the offer and outcome of every map from server seed, client seed and nonce and replays a journey move by move – written from the rules, with fractions instead of tables. The moves are on the page of every journey.

#!/usr/bin/env python3
"""
Satanio I – unabhängige Zweitimplementierung.

Mit diesem Programm rechnet jeder eine Reise nach, ohne dem Casino zu
glauben: das Angebot jeder Karte, den Ausgang jedes Lagers und den Kampf
gegen Satan – aus Server-Seed, Client-Seed und Nonce der Reise. Es ist aus
dem Regelwerk geschrieben, nicht aus src/games/satanio.ts übersetzt: Die
Faktoren sind Brüche (fractions), die Seherin wird aus ihrer Formel gerechnet
(2f − 1 und (f + 1) / 2), nicht aus einer Tabelle.

    python3 satanio_referenz.py karte <server_seed> <client_seed> <nonce> <karte> <gebiet>
    python3 satanio_referenz.py lager <server_seed> <client_seed> <nonce> <karte> <platz> <betrag> <faktor> <gebiet>
    python3 satanio_referenz.py satan <server_seed> <client_seed> <nonce> <karte> <betrag> <topf> <rest>
    python3 satanio_referenz.py reise <server_seed> <client_seed> <nonce> <gebiet> <einsatz> "<züge>"
    python3 satanio_referenz.py pruefe <datei.json>

Eine ganze Reise nachspielen (`reise`): Die Züge stehen auf der Seite jeder
Reise, z. B. "a0 p s:mutig a1 h" – a0/a1 greift das linke/rechte Lager an
(auch Cheat und Satan), p ist das Portal zur nächsten Karte, s:mutig und
s:vorsichtig die Wahl bei der Seherin, h die Heimkehr. Den Einsatz kennt nur
der Spieler (sein Verlauf); ohne ihn stimmen Angebot und Satan trotzdem, nur
die gezogene Zahl eines Lagers hängt am Betrag.

Regeln in Kürze:
- Karte k, Feld f: die Zahl ab Cursor k * 10000 + f * 1000 (getInt aus referenz.py).
- Felder: 0 Cheat (1 zu 5), 1 welcher Cheat (6), 2 leichter Faktor (5/4, 3/2),
  3 schwerer Faktor (2, 3, 5), 4 Seherin (1 zu 6), 5 Satan (1 zu 10, nur
  Feuerland), 6 Ausgang des leichten Lagers, 7 Ausgang des schweren / Satan.
- Lager: B = abrunden(A * Faktor); überlebt, wenn getInt(100 * B) < 99 * A,
  im Feuerland < 98 * A (das Prozent dazwischen geht in Satans Topf).
- Satan: getInt(100) = 0 besiegt ihn; 99 % des Betrags in den Topf (Übertrag
  in Hundertsteln), der Rest ans Haus; der Sieger bekommt
  abrunden(Topf_vorher * min(Betrag, 100) / 100).
"""
import json
import os
import sys
from fractions import Fraction

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from referenz import get_int  # noqa: E402

CHEATS = ["godmode", "noclip", "speedhack", "wallhack", "teleport", "anticheat-bypass"]
LEICHT = [Fraction(5, 4), Fraction(3, 2)]
SCHWER = [Fraction(2), Fraction(3), Fraction(5)]


def zahl(server_seed, client_seed, nonce, karte, feld, spanne):
    wert, _ = get_int(spanne, server_seed, client_seed, nonce, karte * 10000 + feld * 1000)
    return wert


def text(f):
    """Ein Faktor so geschrieben wie im Casino: 5/4, 3/2, 2."""
    return str(f.numerator) if f.denominator == 1 else f"{f.numerator}/{f.denominator}"


def angebot(server_seed, client_seed, nonce, karte, gebiet):
    z = [zahl(server_seed, client_seed, nonce, karte, feld, spanne)
         for feld, spanne in enumerate([5, 6, 2, 3, 6, 10])]
    if z[0] == 0:
        leicht = {"art": "cheat", "cheat": CHEATS[z[1]]}
    else:
        leicht = {"art": "lager", "faktor": text(LEICHT[z[2]])}
    if gebiet == "feuer" and z[5] == 0:
        schwer = {"art": "satan"}
    else:
        schwer = {"art": "lager", "faktor": text(SCHWER[z[3]])}
    return {"lager": [leicht, schwer], "seherin": z[4] == 0, "zahlen": z}


def seherin(faktor, wahl):
    f = Fraction(faktor)
    return text(2 * f - 1 if wahl == "mutig" else (f + 1) / 2)


def lager(server_seed, client_seed, nonce, karte, platz, betrag, faktor, gebiet):
    b = (betrag * Fraction(faktor)).__floor__()
    if b <= betrag:
        return {"geht": False}
    spanne = 100 * b
    grenze = (98 if gebiet == "feuer" else 99) * betrag
    wurf = zahl(server_seed, client_seed, nonce, karte, 6 + platz, spanne)
    return {"geht": True, "betragNach": b, "spanne": spanne, "wurf": wurf, "ueberlebt": wurf < grenze}


def satan(server_seed, client_seed, nonce, karte, betrag, topf, rest):
    wurf = zahl(server_seed, client_seed, nonce, karte, 7, 100)
    sieg = wurf == 0
    zu, neu_rest = divmod(rest + 99 * betrag, 100)
    anteil = topf * min(betrag, 100) // 100 if sieg else 0
    return {"sieg": sieg, "wurf": wurf, "anteil": anteil, "zufuehrung": zu,
            "haus": betrag - zu, "topf": topf + zu - anteil, "rest": neu_rest}


def reise(server_seed, client_seed, nonce, gebiet, einsatz, zuege):
    """Spielt eine Reise Zug für Zug nach – vom Einsatz bis zum Ende."""
    s = (server_seed, client_seed, nonce)
    karte, betrag, wahl, aus = 0, einsatz, None, []
    for zug in zuege.split():
        if zug.startswith("s:"):
            wahl = zug[2:]
            aus.append({"karte": karte, "art": "seherin", "wahl": wahl})
        elif zug == "p":
            karte, wahl = karte + 1, None
            aus.append({"karte": karte, "art": "portal"})
        elif zug in ("h", "f"):
            aus.append({"karte": karte, "art": "heimkehr", "auszahlung": betrag})
            break
        elif zug in ("a0", "a1"):
            platz = int(zug[1])
            b = angebot(*s, karte, gebiet)["lager"][platz]
            if b["art"] == "cheat":
                aus.append({"karte": karte, "art": "cheat", "platz": platz, "cheat": b["cheat"], "betrag": betrag})
            elif b["art"] == "satan":
                wurf = zahl(*s, karte, 7, 100)
                aus.append({"karte": karte, "art": "satan", "platz": platz, "wurf": wurf, "sieg": wurf == 0, "betragVorher": betrag})
                break
            else:
                faktor = b["faktor"] if wahl is None else seherin(b["faktor"], wahl)
                e = lager(*s, karte, platz, betrag, faktor, gebiet)
                if not e["geht"]:
                    aus.append({"karte": karte, "art": "kampf", "platz": platz, "faktor": faktor, "geht": False})
                    break
                aus.append({"karte": karte, "art": "kampf", "platz": platz, "faktor": faktor, "betragVorher": betrag,
                            "betragNach": e["betragNach"], "spanne": e["spanne"], "wurf": e["wurf"], "ueberlebt": e["ueberlebt"]})
                if not e["ueberlebt"]:
                    break
                betrag = e["betragNach"]
        else:
            raise ValueError(f"Unbekannter Zug: {zug}")
    return aus


def pruefe(pfad):
    with open(pfad, encoding="utf-8") as f:
        auftraege = json.load(f)
    aus = []
    for a in auftraege:
        s = (a["serverSeed"], a["clientSeed"], a["nonce"])
        if a["was"] == "karte":
            aus.append(angebot(*s, a["karte"], a["gebiet"]))
        elif a["was"] == "lager":
            aus.append(lager(*s, a["karte"], a["platz"], a["betrag"], a["faktor"], a["gebiet"]))
        elif a["was"] == "satan":
            aus.append(satan(*s, a["karte"], a["betrag"], a["topf"], a["rest"]))
        elif a["was"] == "seherin":
            aus.append(seherin(a["faktor"], a["wahl"]))
        elif a["was"] == "reise":
            aus.append(reise(*s, a["gebiet"], a["einsatz"], a["zuege"]))
    return aus


def main(argv):
    if len(argv) == 3 and argv[1] == "pruefe":
        print(json.dumps(pruefe(argv[2])))
    elif len(argv) == 7 and argv[1] == "karte":
        print(json.dumps(angebot(argv[2], argv[3], int(argv[4]), int(argv[5]), argv[6])))
    elif len(argv) == 10 and argv[1] == "lager":
        print(json.dumps(lager(argv[2], argv[3], int(argv[4]), int(argv[5]), int(argv[6]), int(argv[7]), argv[8], argv[9])))
    elif len(argv) == 8 and argv[1] == "reise":
        for schritt in reise(argv[2], argv[3], int(argv[4]), argv[5], int(argv[6]), argv[7]):
            print(json.dumps(schritt, ensure_ascii=False))
    elif len(argv) == 9 and argv[1] == "satan":
        print(json.dumps(satan(argv[2], argv[3], int(argv[4]), int(argv[5]), int(argv[6]), int(argv[7]), int(argv[8]))))
    else:
        print(__doc__)
        return 2
    return 0


if __name__ == "__main__":
    sys.exit(main(sys.argv))

Undetected: recalculating a round

undetected_referenz.py also sits next to the file above and uses its get_int. It calculates the reels, every free spin and every step of the ladder from server seed, client seed and nonce – written from the rules; the strips and lines in it are the rules themselves, and fingerabdruck shows that they are exactly the same as in the casino. The moves are on the page of every round.

#!/usr/bin/env python3
"""
Undetected – unabhängige Zweitimplementierung.

Mit diesem Programm rechnet jeder eine Runde nach, ohne dem Casino zu
glauben: die Walzen des Grundspiels, jedes Freispiel mit Speedhack und
BOT-Walzen, den Gewinn der Runde und jede Stufe der Leiter – aus Server-Seed,
Client-Seed und Nonce. Es ist aus dem Regelwerk geschrieben, nicht aus
src/games/undetected.ts übersetzt; die Bänder und Linien unten sind das
Regelwerk selbst. `fingerabdruck` zeigt, dass es genau dasselbe ist wie im
Casino: SHA-256 derselben kanonischen Form.

    python3 undetected_referenz.py runde <server_seed> <client_seed> <nonce>
    python3 undetected_referenz.py leiter <server_seed> <client_seed> <nonce> <einsatz> <hoechstgewinn> "<züge>"
    python3 undetected_referenz.py stufen <server_seed> <client_seed> <nonce> "<züge>"
    python3 undetected_referenz.py fingerabdruck
    python3 undetected_referenz.py haeufigkeiten
    python3 undetected_referenz.py pruefe <datei.json>

Runden bis zum 05.11.2026 liefen nach einem früheren Regelwerk: höchstens 30
Einsätze, Speedhack bis 5, 2, 5 oder 10 Freispiele. Für sie gehört
`--fassung 30` ans Ende jedes Befehls; die Seite der Runde nennt es dann.

Züge der Leiter: u = unauffällig (×1,5), a = auffällig (×2), r = Rage-Hack
(×3), s = Hälfte sichern, n = nehmen, f = nach 24 Stunden genommen.
Beispiel: "s u a n".

`stufen` braucht keinen Betrag: Es zeigt für jede Stufe der Züge die gezogene
Zahl, die Spanne und ob sie geschafft ist – so steht es auf der öffentlichen
Seite jeder Runde, ohne Einsatz. `leiter` rechnet dazu die Beträge.

Regeln in Kürze:
- Grundspiel: Walze w (0 bis 4) stoppt bei get_int(32) an Cursor w; sichtbar
  sind die Stelle und die zwei folgenden (oben, Mitte, unten).
- 20 Linien, je Linie von links: BOT ersetzt alles außer dem Bug, ein Bug
  bricht ab; ab drei gleichen zahlt die Tabelle ein Vielfaches des Einsatzes.
- Bugs: auf wie vielen Walzen einer im Fenster liegt. 3 → 2 Freispiele,
  4 → 4, 5 → 8 und Zero Day.
- Freispiel n: Walzen an Cursor n*100 + 0..4 (eigene Bänder ohne Bug), BOT
  für Walze 2, 3, 4 an Cursor n*100 + 5..7: get_int(32) == 0 nistet einen
  BOT ein (nur auf Walzen ohne BOT), er füllt die Walze und bleibt. Gewinn mal
  Speedhack; Speedhack beginnt bei 1 und steigt nach jedem Freispiel mit
  Gewinn um 1, höchstens 2. Die Runde zahlt höchstens 100 Einsätze; ist das
  erreicht, enden die Freispiele.
- Leiterstufe k (ab 0): get_int(100 oder 200) an Cursor 10000 + k*1000;
  unauffällig ×3/2 bei < 66 von 100, auffällig ×2 bei < 99 von 200,
  Rage-Hack ×3 bei < 33 von 100 – Erwartung je Stufe genau 99/100. Bei
  „unauffällig“ legt ein ungerader Betrag 1 eGold aufs Savegame.
"""
import hashlib
import json
import os
import sys
from fractions import Fraction

sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from referenz import get_int  # noqa: E402

ZAHLENDE = ["dma", "zwei", "ein", "pix", "esp", "radar", "trigger", "norecoil"]

BAENDER = [
    "norecoil esp radar dma trigger bug ein trigger norecoil pix trigger norecoil pix trigger bug norecoil radar ein esp radar dma norecoil trigger esp pix ein esp pix radar esp zwei radar",
    "radar norecoil bug radar ein bot dma radar trigger pix zwei esp pix ein zwei esp bug radar trigger norecoil pix esp norecoil radar esp trigger radar esp zwei trigger norecoil esp",
    "dma radar trigger pix zwei esp pix ein zwei esp bug radar trigger norecoil pix esp norecoil radar esp trigger radar esp zwei trigger norecoil esp radar norecoil bug radar ein bot",
    "zwei esp bug radar trigger norecoil pix esp norecoil radar esp trigger radar esp zwei trigger norecoil esp radar norecoil bug radar ein bot dma radar trigger pix zwei esp pix ein",
    "pix norecoil trigger pix ein dma trigger pix esp norecoil pix bug norecoil radar trigger pix esp trigger radar esp trigger ein esp radar norecoil zwei esp norecoil pix ein trigger radar",
]
FREISPIEL_BAENDER = [
    "trigger radar norecoil trigger esp zwei ein norecoil trigger esp radar trigger esp norecoil radar pix trigger norecoil radar esp trigger pix radar norecoil esp radar norecoil trigger esp radar norecoil esp",
    "trigger pix radar norecoil esp trigger radar norecoil esp radar ein trigger esp norecoil radar trigger esp pix norecoil trigger radar norecoil esp trigger norecoil esp radar zwei trigger radar norecoil esp",
    "trigger esp norecoil radar trigger esp pix norecoil trigger radar norecoil esp trigger norecoil esp radar zwei trigger radar norecoil esp trigger pix radar norecoil esp trigger radar norecoil esp radar ein",
    "norecoil esp trigger norecoil esp radar zwei trigger radar norecoil esp trigger pix radar norecoil esp trigger radar norecoil esp radar ein trigger esp norecoil radar trigger esp pix norecoil trigger radar",
    "esp radar trigger esp norecoil radar pix trigger norecoil radar esp trigger pix radar norecoil esp radar norecoil trigger esp radar norecoil esp trigger radar norecoil trigger esp zwei ein norecoil trigger",
]
BAENDER = [b.split() for b in BAENDER]
FREISPIEL_BAENDER = [b.split() for b in FREISPIEL_BAENDER]

LINIEN = [
    "11111", "00000", "22222", "01210", "21012",
    "10001", "12221", "00122", "22100", "12101",
    "10121", "01110", "21112", "01010", "21212",
    "11011", "11211", "00200", "22022", "02220",
]
LINIEN = [[int(c) for c in l] for l in LINIEN]

ZAHLT = {
    "dma": [5, 10, 25], "zwei": [3, 8, 15], "ein": [2, 5, 12], "pix": [2, 4, 10],
    "esp": [1, 2, 5], "radar": [1, 2, 5], "trigger": [1, 2, 5], "norecoil": [1, 2, 5],
}
FREISPIELE = {3: 2, 4: 4, 5: 8}
BOT_WALZEN = [1, 2, 3]
BOT_JE = 32
SPEEDHACK_MAX = 2
DECKEL = 100
# Frühere Regelwerke: nur diese drei Zahlen waren anders.
FASSUNGEN = {
    "30": {"freispiele": {3: 2, 4: 5, 5: 10}, "speedhack_max": 5, "deckel": 30},
}
VOLLEINSATZ = 25
FREISPIEL_SCHRITT = 100
LEITER_AB = 10000
LEITER_SCHRITT = 1000
# Wahl: (Faktor, Spanne, darunter geschafft)
LEITER = {
    "unauffaellig": (Fraction(3, 2), 100, 66),
    "auffaellig": (Fraction(2), 200, 99),
    "rage": (Fraction(3), 100, 33),
}
WAHLEN = ["unauffaellig", "auffaellig", "rage"]


def kanonisch():
    """Dieselbe Zeichenkette wie kanonisch() im Casino – Reihenfolge und Form genau so."""
    return json.dumps([
        "undetected/1",
        BAENDER,
        FREISPIEL_BAENDER,
        LINIEN,
        [[s, ZAHLT[s]] for s in ZAHLENDE],
        [[b, n] for b, n in sorted(FREISPIELE.items())],
        BOT_WALZEN,
        BOT_JE,
        SPEEDHACK_MAX,
        DECKEL,
        VOLLEINSATZ,
        [FREISPIEL_SCHRITT, LEITER_AB, LEITER_SCHRITT],
        [[w, LEITER[w][0].numerator, LEITER[w][0].denominator, LEITER[w][1], LEITER[w][2]] for w in WAHLEN],
    ], separators=(",", ":"), ensure_ascii=False)


def fingerabdruck():
    return hashlib.sha256(kanonisch().encode("utf-8")).hexdigest()


def zahl(seeds, cursor, spanne):
    wert, _ = get_int(spanne, seeds[0], seeds[1], seeds[2], cursor)
    return wert


def sichtbar(band, stopp):
    """Oben die Stelle des Stopps, darunter die zwei folgenden."""
    return [band[(stopp + i) % len(band)] for i in range(3)]


def linie_zahlt(symbole):
    """Was eine Linie zahlt: (Symbol, Anzahl, Einsätze) oder None."""
    if "bug" in symbole[:1]:
        return None
    # bis zum ersten Bug
    kette = []
    for s in symbole:
        if s == "bug":
            break
        kette.append(s)
    echte = [s for s in kette if s != "bot"]
    if not echte:
        return None
    basis = echte[0]
    anzahl = 0
    for s in kette:
        if s in (basis, "bot"):
            anzahl += 1
        else:
            break
    if anzahl < 3 or ZAHLT[basis][anzahl - 3] == 0:
        return None
    return basis, anzahl, ZAHLT[basis][anzahl - 3]


def werte(feld):
    treffer = []
    for nr, linie in enumerate(LINIEN):
        t = linie_zahlt([feld[w][linie[w]] for w in range(5)])
        if t:
            treffer.append([nr, t[0], t[1], t[2]])
    bugs = sum(1 for walze in feld if "bug" in walze)
    return treffer, sum(t[3] for t in treffer), bugs


def runde(seeds):
    stopps = [zahl(seeds, w, len(BAENDER[w])) for w in range(5)]
    feld = [sichtbar(BAENDER[w], s) for w, s in enumerate(stopps)]
    treffer, summe, bugs = werte(feld)
    ausgeloest = FREISPIELE.get(bugs, 0)
    stand = min(DECKEL, summe)
    speedhack = 1
    bots = []
    freispiele = []
    n = 0
    while n < ausgeloest and stand < DECKEL:
        n += 1
        basis = n * FREISPIEL_SCHRITT
        f_stopps = [zahl(seeds, basis + w, len(FREISPIEL_BAENDER[w])) for w in range(5)]
        bot_zahlen = [zahl(seeds, basis + 5 + i, BOT_JE) for i in range(len(BOT_WALZEN))]
        neue = [w for i, w in enumerate(BOT_WALZEN) if w not in bots and bot_zahlen[i] == 0]
        bots = sorted(bots + neue)
        f_feld = [["bot"] * 3 if w in bots else sichtbar(FREISPIEL_BAENDER[w], s) for w, s in enumerate(f_stopps)]
        f_treffer, f_summe, _ = werte(f_feld)
        vorher = stand
        stand = min(DECKEL, stand + f_summe * speedhack)
        freispiele.append({
            "nr": n, "stopps": f_stopps, "bot_zahlen": bot_zahlen, "neue_bots": neue, "bot_walzen": bots,
            "treffer": f_treffer, "summe": f_summe, "speedhack": speedhack, "gewinn": stand - vorher, "stand": stand,
        })
        if f_summe > 0:
            speedhack = min(SPEEDHACK_MAX, speedhack + 1)
    return {
        "stopps": stopps, "feld": feld, "treffer": treffer, "summe": summe, "bugs": bugs,
        "zero_day": bugs == 5, "ausgeloest": ausgeloest, "freispiele": freispiele,
        "faktor": stand, "gedeckelt": stand >= DECKEL,
    }


def stufe_geht(betrag, gesichert, einsatz, hoechstgewinn, wahl):
    """Was eine Stufe ergäbe: (Savegame, Rest, neu) – oder None."""
    faktor = LEITER[wahl][0]
    savegame = betrag % faktor.denominator
    rest = betrag - savegame
    if rest <= 0:
        return None
    neu = rest * faktor
    assert neu.denominator == 1
    neu = int(neu)
    if gesichert + savegame + neu - einsatz > hoechstgewinn:
        return None
    return savegame, rest, neu


def leiter(seeds, einsatz, hoechstgewinn, zuege):
    """Spielt die Leiter einer Runde nach. Gibt die Schritte und was gutgeschrieben wurde."""
    r = runde(seeds)
    betrag = r["faktor"] * einsatz
    gesichert = 0
    stufe = 0
    gutschrift = 0
    schritte = []
    if betrag == 0:
        return {"faktor": r["faktor"], "schritte": [], "gutschrift": 0, "ende": None}

    def irgendeine(b, g):
        return any(stufe_geht(b, g, einsatz, hoechstgewinn, w) for w in WAHLEN)

    if not irgendeine(betrag, gesichert):
        return {"faktor": r["faktor"], "schritte": [], "gutschrift": betrag, "ende": "direkt"}
    ende = None
    namen = {"u": "unauffaellig", "a": "auffaellig", "r": "rage"}
    for zug in zuege.split():
        if ende is not None:
            raise SystemExit(f"Zug {zug} nach dem Ende der Leiter.")
        if zug == "n":
            gutschrift += betrag
            schritte.append({"art": "nehmen", "betrag": betrag})
            betrag = 0
            ende = "genommen"
        elif zug == "s":
            if betrag < 2:
                raise SystemExit("Unter 2 eGold gibt es keine Hälfte.")
            haelfte = betrag // 2
            betrag -= haelfte
            gesichert += haelfte
            gutschrift += haelfte
            schritte.append({"art": "sichern", "haelfte": haelfte})
        elif zug in namen:
            wahl = namen[zug]
            geht = stufe_geht(betrag, gesichert, einsatz, hoechstgewinn, wahl)
            if geht is None:
                raise SystemExit(f"Stufe {wahl} geht nicht.")
            savegame, rest, neu = geht
            _, spanne, unter = LEITER[wahl]
            assert Fraction(unter, spanne) * neu == Fraction(99, 100) * rest
            cursor = LEITER_AB + stufe * LEITER_SCHRITT
            z = zahl(seeds, cursor, spanne)
            geschafft = z < unter
            gesichert += savegame
            gutschrift += savegame
            schritte.append({"art": "stufe", "wahl": wahl, "k": stufe, "cursor": cursor, "zahl": z,
                             "spanne": spanne, "geschafft": geschafft, "savegame": savegame, "rest": rest, "neu": neu})
            if not geschafft:
                betrag = 0
                ende = "gebannt"
            else:
                betrag = neu
                stufe += 1
                if not irgendeine(betrag, gesichert):
                    gutschrift += betrag
                    betrag = 0
                    ende = "oben"
        else:
            raise SystemExit(f"Unbekannter Zug {zug}.")
    return {"faktor": r["faktor"], "schritte": schritte, "gutschrift": gutschrift, "ende": ende,
            "betrag": betrag, "gesichert": gesichert}


def stufen(seeds, zuege):
    """Die gezogenen Zahlen der Leiter – ohne Betrag. Stufe k ist die k-te Stufe der Züge (ab 0)."""
    namen = {"u": "unauffaellig", "a": "auffaellig", "r": "rage"}
    aus = []
    k = 0
    for zug in zuege.split():
        if zug in ("s", "n", "f"):
            continue
        if zug not in namen:
            raise SystemExit(f"Unbekannter Zug {zug}.")
        if aus and not aus[-1]["geschafft"]:
            raise SystemExit(f"Zug {zug} nach BANNED.")
        wahl = namen[zug]
        _, spanne, unter = LEITER[wahl]
        cursor = LEITER_AB + k * LEITER_SCHRITT
        z = zahl(seeds, cursor, spanne)
        aus.append({"k": k, "wahl": wahl, "cursor": cursor, "zahl": z, "spanne": spanne, "unter": unter, "geschafft": z < unter})
        k += 1
    return aus


def haeufigkeiten():
    """
    Ohne Aufzählung, nur aus der Häufigkeit der Symbole je Walze: was alle Linien
    im Grundspiel im Mittel zahlen (ungekappt), und wie oft 0 bis 5 Bugs liegen.
    Jede Reihe einer Walze zeigt jedes Symbol so oft, wie es auf dem Band steht.
    """
    n = len(BAENDER[0])

    def p(w, s):
        return Fraction(BAENDER[w].count(s), n)

    linie = Fraction(0)
    for s in ZAHLENDE:
        passt = [p(0, s)] + [p(w, s) + p(w, "bot") for w in range(1, 5)]
        drei = passt[0] * passt[1] * passt[2]
        linie += drei * (1 - passt[3]) * ZAHLT[s][0]
        linie += drei * passt[3] * (1 - passt[4]) * ZAHLT[s][1]
        linie += drei * passt[3] * passt[4] * ZAHLT[s][2]
    bugs = [Fraction(1)]
    for band in BAENDER:
        q = Fraction(3 * band.count("bug"), n)
        neu = [Fraction(0)] * (len(bugs) + 1)
        for k, c in enumerate(bugs):
            neu[k] += c * (1 - q)
            neu[k + 1] += c * q
        bugs = neu

    def text(f):
        return f"{f.numerator}/{f.denominator}"

    return {
        "linien": text(linie * len(LINIEN)),
        "bugs": [text(b) for b in bugs],
        "freispiele": text(sum(bugs[3:])),
        "zero_day": text(bugs[5]),
    }


def pruefe(datei):
    with open(datei, encoding="utf-8") as f:
        auftraege = json.load(f)
    aus = []
    for a in auftraege:
        seeds = (a.get("serverSeed"), a.get("clientSeed"), a.get("nonce"))
        if a["was"] == "runde":
            aus.append(runde(seeds))
        elif a["was"] == "leiter":
            aus.append(leiter(seeds, a["einsatz"], a["hoechstgewinn"], a["zuege"]))
        elif a["was"] == "stufen":
            aus.append(stufen(seeds, a["zuege"]))
        elif a["was"] == "fingerabdruck":
            aus.append(fingerabdruck())
        elif a["was"] == "haeufigkeiten":
            aus.append(haeufigkeiten())
        else:
            raise SystemExit(f"Unbekannter Auftrag {a['was']}.")
    return aus


def waehle_fassung(fassung):
    """Stellt ein früheres Regelwerk ein (--fassung 30)."""
    global FREISPIELE, SPEEDHACK_MAX, DECKEL
    if fassung not in FASSUNGEN:
        raise SystemExit(f"Unbekannte Fassung {fassung}; bekannt: {', '.join(FASSUNGEN)}.")
    f = FASSUNGEN[fassung]
    FREISPIELE, SPEEDHACK_MAX, DECKEL = dict(f["freispiele"]), f["speedhack_max"], f["deckel"]


def main(args):
    if "--fassung" in args:
        i = args.index("--fassung")
        if i + 1 >= len(args):
            print(__doc__)
            return 1
        waehle_fassung(args[i + 1])
        args = args[:i] + args[i + 2:]
    if not args:
        print(__doc__)
        return 1
    befehl = args[0]
    if befehl == "runde" and len(args) == 4:
        out = runde((args[1], args[2], int(args[3])))
    elif befehl == "leiter" and len(args) == 7:
        out = leiter((args[1], args[2], int(args[3])), int(args[4]), int(args[5]), args[6])
    elif befehl == "stufen" and len(args) == 5:
        out = stufen((args[1], args[2], int(args[3])), args[4])
    elif befehl == "fingerabdruck":
        out = fingerabdruck()
    elif befehl == "haeufigkeiten":
        out = haeufigkeiten()
    elif befehl == "pruefe" and len(args) == 2:
        out = pruefe(args[1])
    else:
        print(__doc__)
        return 1
    print(json.dumps(out, ensure_ascii=False))
    return 0


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))
The basic strategy against which the blackjack house edge was measured

The blackjack house edge shown is not a calculated but a measured value – and it was measured against exactly this table. Anyone who plays worse pays more; with a shoe that is reshuffled before every round, better is not possible. The comments in the code are in German.

/**
 * Basisstrategie fuer das Regelwerk aus §6: 6 Decks, Dealer zieht Soft 17,
 * Double nach Split erlaubt, kein Surrender.
 *
 * **Wozu das hier steht:** §6 sagt, der verbindliche Hausvorteil sei das
 * Ergebnis der Simulation aus §8. Eine Simulation braucht aber einen Spieler,
 * und wie gut der spielt, entscheidet die Zahl. Gemessen wird deshalb gegen
 * **optimales Spiel ohne Kartenzaehlen** – die Basisstrategie. Wer schlechter
 * spielt, zahlt mehr; besser geht bei einem Schuh, der vor jeder Runde neu
 * gemischt wird, nicht.
 *
 * Die Tabelle gehoert damit zur ausgewiesenen Zahl und steht auf der
 * Transparenzseite. Eine Prozentzahl ohne die Strategie, gegen die sie
 * gemessen wurde, ist keine nachpruefbare Angabe.
 *
 * Die Blackjack-Auszahlung (7:5) kommt in der Tabelle **nicht** vor, und das ist richtig
 * so: Sie aendert die Hoehe des Blackjack-Gewinns, nie die beste Entscheidung
 * an einer Hand. Sie schlaegt voll auf den Hausvorteil durch, ohne das Spiel
 * zu veraendern – deshalb ist sie die teuerste Regel des Tisches.
 */
import {
  handWert,
  kartenwert,
  type Aktion,
  type BlackjackRules,
  BLACKJACK_RULES,
} from './blackjack.ts'

export interface Lage {
  readonly karten: readonly number[]
  /** Zaehlwert der offenen Dealerkarte: 2 bis 11. */
  readonly dealer: number
  readonly darfVerdoppeln: boolean
  readonly darfTeilen: boolean
}

/** Dealerkarten, gegen die gesplittet wird – kompakt als Liste. */
const SPLIT_GEGEN: Record<number, readonly number[]> = {
  11: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11], // Asse immer
  10: [], // Zehner nie
  9: [2, 3, 4, 5, 6, 8, 9], // nicht gegen 7, 10, Ass
  8: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11], // Achter immer
  7: [2, 3, 4, 5, 6, 7],
  6: [2, 3, 4, 5, 6],
  5: [], // nie – 5,5 wird als harte 10 gespielt
  4: [5, 6], // nur mit Double nach Split sinnvoll
  3: [2, 3, 4, 5, 6, 7],
  2: [2, 3, 4, 5, 6, 7],
}

/** Weiche Haende: bis zu welcher Dealerkarte verdoppelt wird. */
const SOFT_DOUBLE_GEGEN: Record<number, readonly number[]> = {
  13: [5, 6],
  14: [5, 6],
  15: [4, 5, 6],
  16: [4, 5, 6],
  17: [3, 4, 5, 6],
  18: [2, 3, 4, 5, 6],
  19: [6], // nur weil der Dealer Soft 17 zieht
}

const HART_DOUBLE_GEGEN: Record<number, readonly number[]> = {
  9: [3, 4, 5, 6],
  10: [2, 3, 4, 5, 6, 7, 8, 9],
  11: [2, 3, 4, 5, 6, 7, 8, 9, 10, 11], // gegen alles, auch das Ass (Soft 17)
}

/**
 * Die Entscheidung.
 *
 * Reihenfolge wie am Tisch: erst Paare, dann weiche, dann harte Haende. Eine
 * andere Reihenfolge waere nicht bloss unuebersichtlich, sondern falsch –
 * A,A ist ein Paar **und** eine weiche Hand, und gespielt wird es als Paar.
 */
export function basisstrategie(
  lage: Lage,
  rules: BlackjackRules = BLACKJACK_RULES,
): Aktion {
  const { karten, dealer } = lage
  const wert = handWert(karten)

  // --- Paare ---------------------------------------------------------------
  if (lage.darfTeilen && karten.length === 2) {
    const a = kartenwert(karten[0]!)
    const b = kartenwert(karten[1]!)
    if (a === b) {
      const gegen = SPLIT_GEGEN[a]
      if (gegen !== undefined && gegen.includes(dealer)) return 'teilen'
      // 4,4 nur mit Double nach Split; ohne DAS wird gezogen.
      if (a === 4 && !rules.doubleNachSplit) return 'ziehen'
    }
  }

  // --- Weiche Haende -------------------------------------------------------
  if (wert.soft && wert.summe >= 13 && wert.summe <= 19) {
    const doppeln = SOFT_DOUBLE_GEGEN[wert.summe]
    if (lage.darfVerdoppeln && doppeln !== undefined && doppeln.includes(dealer)) {
      return 'verdoppeln'
    }
    // Ohne Double: Soft 18 steht gegen 2 bis 8, Soft 19 und 20 immer.
    if (wert.summe === 18) return dealer <= 8 ? 'stehen' : 'ziehen'
    if (wert.summe >= 19) return 'stehen'
    return 'ziehen'
  }
  if (wert.soft && wert.summe >= 20) return 'stehen'

  // --- Harte Haende --------------------------------------------------------
  if (lage.darfVerdoppeln) {
    const doppeln = HART_DOUBLE_GEGEN[wert.summe]
    if (doppeln !== undefined && doppeln.includes(dealer)) return 'verdoppeln'
  }

  if (wert.summe >= 17) return 'stehen'
  if (wert.summe >= 13) return dealer <= 6 ? 'stehen' : 'ziehen'
  if (wert.summe === 12) return dealer >= 4 && dealer <= 6 ? 'stehen' : 'ziehen'
  return 'ziehen'
}

/** Die Dealerkarte, gegen die entschieden wird – die **offene**. */
export function dealerZeigt(dealer: readonly number[]): number {
  const karte = dealer[0]
  if (karte === undefined) throw new Error('Der Dealer hat keine offene Karte.')
  return kartenwert(karte)
}

/** Ob eine Hand als Paar gilt – gleicher Zaehlwert, nicht gleicher Rang. */
export function istPaar(karten: readonly number[]): boolean {
  return karten.length === 2 && kartenwert(karten[0]!) === kartenwert(karten[1]!)
}