Bitcoin Forum
December 15, 2024, 08:16:45 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: New Jonbet Turbo Crash Game Seeding Event  (Read 56 times)
jonbet (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
March 11, 2024, 03:06:08 PM
 #1

Hello all! We're back again prepping another game before our launch. The game for this seeding event will be our original game Turbo Crash

As usual, we've generated a new chain of 10,000,000 SHA256 hashes where each hash is the hash of the hexadecimal representation of the previous hash. Being the last hash in the chain: b535ff510fe8612ce309a5b264f85d22ad3832c88f13d14cce0910e5f768279f

Code:
const { createHmac } = require('crypto');

const divisible = (hash, mod) => {
  // So ABCDEFGHIJ should be chunked like  AB CDEF GHIJ
  let val = 0;

  let o = hash.length % 4;
  for (let i = o > 0 ? o - 4 : 0; i < hash.length; i += 4) {
    val = ((val << 16) + parseInt(hash.substring(i, i + 4), 16)) % mod;
  }

  return val === 0;
};

const calculateCrashPointFromHash = function (hash) {
  // In 1 of 15 games the game crashes instantly.
  if (divisible(hash, 15)) return 0;

  // Use the most significant 52-bit from the hash to calculate the crash point
  let h = parseInt(hash.slice(0, 52 / 4), 16);
  let e = Math.pow(2, 52);

  return (Math.floor((100 * e - h) / (e - h)) / 100).toFixed(2);
};

// these will be the 10M pre generated rolls to be used
const hashChain = ['random1', 'random2'];

const gameHash = hashChain.pop();

const blockHash = '';

const hash = createHmac('sha256', gameHash).update(blockHash).digest('hex');

const crashPoint = calculateCrashPointFromHash(hash);

console.log({ crashPoint });

We’re gonna be using a BlockHash that hasn’t been mined at the time of this post, we’re expecting to use Bitcoin block 834,226 this to prove we have no influence over the outcome of the game. Please guys feel free to quote this post so this will be all set in stone.

Looking forward to show you guys Turbo Crash very soon!
jonbet (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
March 11, 2024, 03:38:21 PM
 #2

Archived post: https://archive.ph/gtiyf

Client seed has been mined!
00000000000000000002425662dd3d5aed19896328a73cd4325fc475c2be84ef


https://www.blockchain.com/explorer/blocks/btc/834226
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!