STORAGE AUCTION

demo balance1,000.00
LOT UP FOR AUCTION
Pick a locker size and a stake, then open the bidding. Every bid you win raises what the locker is worth. Take it whenever you like and open it. If a rival outbids you first, the lot is gone.
LOT Β· SEALED
πŸ“¦
STORAGE UNIT
#0000
you
LIVE API Β· HOW TO CALL

The engine ships as a browser module at https://danvid1009.github.io/gnarone-game-math/auction/api/rgs.js. It speaks the RGS provider contract (open, valid-bets, bet, next-action, collect; money in integer minor units; bet debits, collect credits) and rolls with crypto.getRandomValues in your page, so there is no server and every round is live. Pass seed to replay a round.

import { createGame } from 'https://danvid1009.github.io/gnarone-game-math/auction/api/rgs.js';

const g = createGame({ preset: 'SMALL' });                   // presets: SMALL, MEDIUM, LARGE, XL
                                                       // bet types: SMALL
const s = g.open();                                    // session, balance 100000, chipLevels [100,200,500,1000,2500,5000,10000]
let r = g.bet({ sessionId: s.sessionId, betAmount: 1000, betType: 'SMALL' });   // fresh crypto seed β†’ nextAction ['CONTINUE']
r = g.nextAction({ roundId: r.roundId, actionCode: 'CONTINUE' });          // step: ['CONTINUE','CASH_OUT'] or the round ends
r = g.nextAction({ roundId: r.roundId, actionCode: 'CASH_OUT' });          // β†’ totalWinAmount, nextAction ['COLLECT']
g.collect({ roundId: r.roundId });                                          // credits the win β†’ { balance }

// Replay any fixture: same seed, same code path, same answer as rounds/007.json
g.bet({ sessionId: s.sessionId, betAmount: 1000, betType: 'SMALL', seed: 'fixture-007' });
STATIC FIXTURES Β· 100 PRE-DRAWN ROUNDS

Seeds fixture-000 … fixture-099, served as plain JSON (GET, no auth, deterministic). Stake unit is 1000 minor units; scale linearly. The live module reproduces any of them when given the same seed.

curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/index.json                 # presets, parameters, bet types, realised RTP
curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/SMALL/field.json            # one preset: frozen config + tables + how to settle
curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/SMALL/rounds/007.json       # one round (000–099), settled for every bet type
curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/SMALL/rounds.json           # all 100 rounds (stake + win per bet type)
curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/SMALL/sample-request.json   # RGS-shaped request
curl -s https://danvid1009.github.io/gnarone-game-math/auction/api/SMALL/sample-response.json  # …and its response

One folder per preset: SMALL, MEDIUM, LARGE, XL. Settlement rule is spelled out in each preset's field.json under how_to_settle; the same seed drives every preset, so round 007 has the same u in all of them.

Full write-up: Storage Auction page.