Bitcoin Forum
November 12, 2024, 05:44:29 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blaze.com Fortune Double (Room II) seeding event  (Read 63 times)
blazecom (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 11, 2023, 11:59:39 PM
 #1

We’re excited to announce that we’re releasing Fortune double game (Room 2) in https://blaze.com/en/games/fortune-double/2  , so we welcome you to our seeding event for Fortune double which we would be releasing soon. For this seeding event we are following the same approach we had for Crash, Slide and Double.

As part of our fairness we generated a 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: 4295b0febe29f98bd3ae14509e800b021196be239e8cbb14c582c1f00007dff3



Script to calculate Fortune double roll:

Code:
const ROULETTE_TILES = [
  { number: 0, color: 'white' },
  { number: 11, color: 'black' },
  { number: 5, color: 'red' },
  { number: 10, color: 'black' },
  { number: 6, color: 'red' },
  { number: 9, color: 'black' },
  { number: 7, color: 'red' },
  { number: 8, color: 'black' },
  { number: 1, color: 'red' },
  { number: 14, color: 'black' },
  { number: 2, color: 'red' },
  { number: 13, color: 'black' },
  { number: 3, color: 'red' },
  { number: 12, color: 'black' },
  { number: 4, color: 'red' },
];

module.exports.getColorByRoll = (roll) => {
  return ROULETTE_TILES.find((t) => t.number === roll).color;
};

const getWhiteMultiplierFromHash = (hash) => {
  let h = parseInt(hash.slice(0, 52 / 4), 16);
  let e = Math.pow(2, 52);

  let multiplier = Math.floor((100 * e - h) / (e - h)) / 100 + 7.5;
  multiplier = Math.max(8.5, Math.min(multiplier, 250));

  return +multiplier.toFixed(2);
};

module.exports.getRollFromHash = (hash) => {
  const integ = parseInt(hash, 16);
  const MAX_RANGE = Math.pow(2, 256);
  const randval = integ / MAX_RANGE;
  const n = Math.floor(randval * 15);
  const tile = ROULETTE_TILES.find((t) => t.number === n);

  let color, multiplier;
  switch (tile.color) {
    case 'white':
      color = 0;
      multiplier = getWhiteMultiplierFromHash(hash);
      break;

    case 'black':
      color = 2;
      multiplier = 2;
      break;

    case 'red':
      color = 1;
      multiplier = 2;
      break;
  }

  return {
    n: n,
    multiplier: multiplier,
    color: color,
  };
};



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 820782, 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 Fortune double very soon!
blazecom (OP)
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 12, 2023, 12:28:38 AM
 #2

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

Client seed has been mined!

Code:
000000000000000000042b3abebc68bfcb356ada08f8bc53905e8e5256c3643e


https://www.blockchain.com/explorer/blocks/btc/820782   

https://blaze.com/en/games/fortune-double/2

SEE YOU THERE!
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!