หลักการทำงานของความยุติธรรมที่พิสูจน์ได้ใน Pump
นี่คือวิธีเล่น Pump บน Cloudbet และวิธีตรวจสอบว่าปั๊มที่ระเบิดในแต่ละรอบเป็นไปตามหลักความยุติธรรมที่พิสูจน์ได้
วิธีเล่น Pump
Pump เป็นเกมแห่งความเสี่ยงที่คุณสูบลม (ลูกโป่งในเวอร์ชันของ Cloudbet) ที่เพิ่มตัวคูณขึ้นทุกครั้งที่สูบ ถอนเงินได้ตลอดเวลาเพื่อล็อกเงินรางวัลของคุณ แต่หากสูบมากเกินไป มันจะแตก และคุณจะเสียเงินเดิมพัน ก่อนเริ่มเล่น โดยทั่วไปคุณจะเลือกระดับความยากที่สร้างสมดุลระหว่างระยะที่คุณจะปลอดภัยกับความเร็วที่ตัวคูณจะเพิ่มขึ้น
เมื่อคุณวางเดิมพันแล้ว กด Pump เพื่อสูบลมลูกโป่งทีละครั้ง การสูบที่สำเร็จแต่ละครั้งจะเพิ่มเงินรางวัลที่เป็นไปได้ของคุณ คุณสามารถกด ถอนเงิน หลังจากสูบครั้งใดก็ได้เพื่อรับตัวคูณปัจจุบันของคุณ หรือจะสูบต่อไปเพื่อรอตัวคูณที่สูงกว่าก็ได้ หากการสูบครั้งถัดไปของคุณบังเอิญเป็นปั๊มที่มีตำหนิของรอบนั้น ลูกโป่งจะแตกทันทีและรอบนั้นจะจบลงโดยไม่มีเงินรางวัล
Cloudbet Originals Pump
เกม Pump ของ Cloudbet Originals มีระดับความยากห้าระดับ ได้แก่ Easy, Medium, Hard, Expert และ Master ซึ่งควบคุมว่าปั๊มกี่ตัวจากทั้งหมด 25 ตัวในรอบนั้นจะ "มีตำหนิ" (ปั๊มที่ทำให้ลูกโป่งแตก) มี RTP 99% เงินรางวัลสูงสุด $1,000,000 และรับเดิมพันตั้งแต่ $0.01 โหมด Autobet ให้คุณตั้งค่าจำนวนเงินเดิมพัน จำนวนครั้งที่สูบต่อรอบ ขีดจำกัดกำไร/ขาดทุน และจำนวนรอบที่จะเล่นโดยอัตโนมัติ ส่วนการเล่นแบบแมนนวล ("Pump รอการป้อนข้อมูลจากคุณ") ก็มีให้ใช้ได้เสมอเช่นกัน
สำหรับกลไกทั่วไปของความยุติธรรมที่พิสูจน์ได้ ทั้ง Server Seed, Client Seed, Nonce, การแฮช และวิธีสร้าง Round Signature ดูได้ที่คู่มือความยุติธรรมที่พิสูจน์ได้ของ Cloudbet ด้านล่างนี้คือวิธีที่ลำดับตัวเลขสุ่มนั้นกลายเป็นผลลัพธ์ของรอบ Pump โดยเฉพาะ
แปลงตัวเลขสุ่มให้กลายเป็นผังของเกม
ปั๊มทั้ง 25 ตัวของ Pump ถูกกำกับด้วยตัวอักษร A ถึง Y เพื่อให้เราติดตามได้:

ปั๊มทั้งหมดเริ่มต้นโดยไม่มีตำหนิ โดยใช้ตัวเลขแรกในลำดับตัวเลขสุ่มของเกม เราเลือกปั๊มที่ไม่มีตำหนิตัวหนึ่งตามดัชนีแล้วทำให้มันมีตำหนิ:

ปั๊มตัวนั้นจะถูกนำออกจากรายการปั๊มที่ไม่มีตำหนิ ดังนั้นการเลือกครั้งถัดไปจะดึงจากที่เหลือเท่านั้น:

กระบวนการนี้จะทำซ้ำจนกว่าจะถึงจำนวนปั๊มที่มีตำหนิตามระดับความยากของรอบนั้น (ตัวอย่างนี้แสดง medium = 3):

เมื่อเลือกปั๊มที่มีตำหนิครบทุกตัวของรอบแล้ว ตัวเลขที่ใช้เลือกพวกมันจะไม่จำเป็นอีกต่อไป สิ่งที่เหลืออยู่คือปั๊มไหนบ้างที่มีตำหนิ:

เนื่องจากปั๊มถูกกดทีละตัวตามลำดับ (A แล้วตามด้วย B แล้วตามด้วย C…) มีเพียงปั๊มที่มีตำหนิตัว แรก ที่ผู้เล่นไปถึงเท่านั้นที่มีความสำคัญจริงๆ ตัวที่อยู่หลังจากนั้นจะไม่มีวันถูกกดถึง ดังนั้นผังจึงถูกย่อให้เหลือเพียงปั๊มตัวที่เกี่ยวข้องตัวเดียวนั้น:

รายละเอียดทางเทคนิค
เราเรียกจำนวนปั๊มที่ไม่มีตำหนิว่า P ไบต์สุ่มจาก SHAKE256 จะถูกแบ่งออกเป็นจำนวนเต็มไม่มีเครื่องหมายขนาด 4 ไบต์ (0 ถึง 2³²−1) เพื่อเลือกอย่างยุติธรรมว่าปั๊มไหนจะมีตำหนิ เราใช้Rejection Sampling กับ P แล้วนำเศษที่เหลือ (+1) มาเป็นดัชนีของปั๊มที่ไม่มีตำหนิที่จะทำให้มีตำหนิ หากยังต้องการปั๊มที่มีตำหนิเพิ่ม ปั๊มที่เลือกไปแล้วจะถูกนำออกจากรายการ ค่า P จะลดลง 1 และมีการสุ่มตัวเลขใหม่ ทำซ้ำไปเรื่อยๆ จนกว่าจะถึงจำนวนปั๊มที่มีตำหนิของรอบนั้น
ผังปั๊มที่มีตำหนิฉบับสุดท้ายจะถูกสร้างและบันทึกไว้ฝั่งเซิร์ฟเวอร์ก่อนที่รอบจะเริ่ม และไม่สามารถเปลี่ยนแปลงได้ในภายหลังโดยไม่ทำลาย Commitment ที่แชร์ให้ผู้เล่นไปแล้ว ปั๊มทุกตัวที่ผู้เล่นกดจะถูกตรวจสอบกับผังที่ล็อกไว้ล่วงหน้านี้
ตรวจสอบด้วยตัวเอง
เราเขียนโปรแกรม Node.js ขนาดเล็กที่ตรงกับการทำงานของ Pump บน Cloudbet ใส่ Server Seed, Client Seed, Nonce และระดับความยากของคุณ เพื่อสร้างผลลัพธ์ของรอบนั้นขึ้นใหม่ (หมายเหตุ: หากต้องการเปิดเผย Server Seed ของรอบบน Cloudbet คุณต้องได้ Rotate ไปเป็น Seed คู่ใหม่แล้ว)
// If you are running this yourself, then you can input your own data here
// You can then compare:
// 1) Cloudbet's provided Commitment to the Commitment outputted here. This proves that the Server Seed was not altered during gameplay.
// 2) Cloudbet's provided game outcome to the game outcome outputted here. This proves that your game's outcome was determined solely by the pre-game seeds and was not altered afterwards.
let myServerSeed = 'your_server_seed'; // ✍️YOUR_INPUT✍️: Enter your (unhashed) Server Seed here
let myClientSeed = 'your_client_seed'; // ✍️YOUR_INPUT✍️: Enter your Client Seed here
let myNonce = 1; // ✍️YOUR_INPUT✍️: Enter your Nonce here
let myDifficultyLevel = 'easy'; // ✍️YOUR_INPUT✍️: Enter your difficulty level here (easy, medium, hard, expert, or master)
const usingCustomData = false; // Change this to true if you are using your own data
// These are the possible difficulty levels (and how many faulty pumps there are per difficulty level)
const faultyPumpsPerDiff = {
'easy': 1,
'medium': 3,
'hard': 5,
'expert': 9,
'master': 12
};
// Load libraries
const crypto = require('crypto');
const { sha3_256, shake256 } = require('js-sha3');
// Step 1: Generate a Server Seed and Commitment
// And generate a Client Seed - either by player input or by the player's browser
function generateServerSeed() {
let seed = crypto.randomBytes(32).toString('hex');
if (usingCustomData) { seed = myServerSeed; }
const commitment = sha3_256(seed);
return { 'serverSeed': seed, 'commitment': commitment };
}
function getClientSeed() {
let seed = crypto.randomBytes(32).toString('hex');
if (usingCustomData) { seed = myClientSeed; }
return seed;
}
// Step 2: Create a Round Signature with SHA3 using a Server Seed, Client Seed and Nonce
function createRoundSignature(serverSeed, clientSeed, nonce) {
return sha3_256(`${serverSeed}:${clientSeed}:${nonce}`);
}
// Step 3: Create a SHAKE256 stream generator from a Round Signature.
// To simplify this example program, this function doesn't create a stream, but instead a sequence of custom length.
function* createRandomNumberSequence(numbersToGenerate, roundSignature) {
const numOfBytes = 4 * numbersToGenerate; // 4 bytes (32 bits) per random number we generate
const byteStream = shake256.create(8 * numOfBytes); // shaker256 takes bits as input
byteStream.update(roundSignature); // Use the Round Signature to seed the generator
const buf = Buffer.from(byteStream.digest()); // The Buffer class lets us package every 4 bytes into one 32-bit integer
for (let i = 0; i < numbersToGenerate; i++) {
yield buf.readUInt32BE(i * 4); // Read buf in 4-byte steps
}
throw new Error("No more numbers in the random number sequence! Fix: make 'numbersToGenerate' larger.");
}
// Step 4: Generate indices of the faulty pumps
function pickUniquePositions(numOfFaultyPumps, totalPumps, rng) {
const available = Array.from({ length: totalPumps }, (_, i) => i);
const faultyPumps = [];
for (let i = 0; i < numOfFaultyPumps; ++i) {
const index = sample(available.length, rng);
faultyPumps.push(available[index]);
available.splice(index, 1); // Remove chosen pump from list of non-faulty pumps
}
return faultyPumps;
}
// Rejection sampling for fair results
function sample(P, rng) {
const maxAcceptable = Math.floor(0x100000000 / P) * P;
// Rejection sampling
let rand;
do {
rand = rng.next().value;
} while (rand >= maxAcceptable);
// Modulo operation
const sampled_number = rand % P;
return sampled_number;
}
// Example usage
(function main() {
const totalPumps = 25;
let difficultyLevel = 'easy';
let nonce = 1;
if (usingCustomData) { difficultyLevel = myDifficultyLevel; nonce = myNonce; }
const numOfFaultyPumps = faultyPumpsPerDiff[difficultyLevel];
const { serverSeed, commitment } = generateServerSeed();
const clientSeed = getClientSeed();
const roundSignature = createRoundSignature(serverSeed, clientSeed, nonce);
const numbersToGenerate = 12 * 2; // We have at most 12 faulty pumps, however due to rejection sampling we may need more numbers
const rng = createRandomNumberSequence(numbersToGenerate, roundSignature);
const faultyPumps = pickUniquePositions(numOfFaultyPumps, totalPumps, rng);
let firstFaultyPump = Math.min(...faultyPumps); // Select the smallest/first faulty pump
firstFaultyPump += 1; // Increment the index so that it starts with 1, 2, 3, ... instead of 0, 1, 2
console.log('📝 Commitment (shown before the game):', commitment);
console.log('🔒 Server Seed (revealed after the game):', serverSeed);
console.log('🎲 Client Seed:', clientSeed);
console.log('🔢 Nonce:', nonce);
console.log('🔁 Round Signature (can be verified after the game):', roundSignature);
console.log('🎯 Difficulty level:', difficultyLevel);
console.log('💣 First faulty pump (zero-indexed, i.e., 1, 2, 3, ...):', firstFaultyPump);
})();
ติดตั้งไลบรารีที่จำเป็นก่อน:
npm install js-sha3
