Bitcoin Forum
May 09, 2024, 09:32:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Jonbet Turbo Crash Game Seeding Event  (Read 43 times)
jonbet (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
March 11, 2024, 01:51:13 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:
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,217 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!


1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
1715290349
Hero Member
*
Offline Offline

Posts: 1715290349

View Profile Personal Message (Offline)

Ignore
1715290349
Reply with quote  #2

1715290349
Report to moderator
SamReomo
Hero Member
*****
Offline Offline

Activity: 798
Merit: 673


Top Crypto Casino


View Profile
March 11, 2024, 02:02:31 PM
 #2

That sounds impressive, I will most probably give your crash a try when it's launched. I would like to know that what makes your version of Crash different from others? If I'm not wrong then other casinos crash also works similarly, so what's different about yours?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jonbet (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
March 11, 2024, 04:07:54 PM
 #3

Sorry there was a mistake on which btc block we were going to use.

Create a new post for that https://bitcointalk.org/index.php?topic=5488449.
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!