This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const gameResult = (seed) => { | |
| const nBits = 52; // number of most significant bits to use | |
| // 1. r = 52 most significant bits | |
| seed = seed.slice(0, nBits / 4); | |
| const r = parseInt(seed, 16); | |
| // 2. X = r / 2^52 | |
| let X = r / Math.pow(2, nBits); // uniformly distributed in [0; 1) | |
| // 3. X = 99 / (1-X) | |
| X = 99 / (1 - X); | |
| // 4. return max(trunc(X), 100) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018-12-04 01:15:09.025INFO ▶ c- [[1.292363 3.312927 3.065309 3.242136 1.203257 4.001583 2.836283 2.264964 2.137190 3.127340 1.005102 2.290770 2.845307 1.884604 2.017701 5.114490 2.119255 1.245514 3.799260 6.132975 6.053459 2.027390 4.401002 3.257526 1.039752 1.168899 2.580058 1.619626 1.793723 5.016340 3.834436 1.662155 2.387116 1.482344 1.727522 1.231348 1.127439 2.244374 3.014714 1.722968 4.016919 2.340494 1.543943 3.388947 3.636658 3.494940 2.782590 2.547370 2.213639 1.036395 1.124087 1.935866 2.867643 2.395242 4.298023 2.364736 2.039248 1.261134 4.211161 1.647302 1.217133 2.517115 2.592353 4.564924 1.312681 1.414053 1.999374 2.493750 1.017453 5.279860 4.229359 2.641408 3.472299 4.818475 1.537027 1.159406 4.198723 3.249691 2.231448 2.484475 4.837269 1.661167 3.858578 2.048083 1.214384 1.148181 1.992410 2.123705 2.076662 2.049664 3.188124 1.882609 1.164327 4.855956 3.262413 2.355339 1.927809 3.349357 2.593451 1.879289 4.532884 5.837416 1.910463 4.345433 1.532999 1.071499 1.160345 1.665998 6.243457 1.81785 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func main(){ | |
| original_hash = "____________" | |
| var i int32 = 0 | |
| var c int32 = 0 | |
| var hit = false | |
| var np = u.totalOutcomeN | |
| mines := make([]int32, np) | |
| var target = int32(u.basicBet.Direction) | |
| var minesTarget = int32(u.basicBet.Target) % u.totalOutcomeN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| contract RSEvents { | |
| // fired whenever a player registers a name | |
| event onNewName | |
| ( | |
| uint256 indexed playerID, | |
| address indexed playerAddress, | |
| bytes32 indexed playerName, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| // | |
| // LimeEyes | |
| // Decentralized art on the Ethereum blockchain! | |
| // (https://limeeyes.com/) | |
| /* | |
| ___ ___ | |
| .-'' ''-. .-'' ''-. | |
| .' '. .' '. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| /* | |
| * Team UltimateGods presents.. | |
| * ====================================* | |
| * ____ ___ _____ | |
| * | _ \ / _ \ | ____| | |
| * | |_) | | | \| | _ | |
| * | __/| |_| || |_| | | |
| * |_| \___/ |_____| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.24; | |
| library SafeMath { | |
| /** | |
| * @dev Multiplies two numbers, throws on overflow. | |
| */ | |
| function mul(uint256 a, uint256 b) internal pure returns (uint256) { | |
| if (a == 0) { | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| /** | |
| * @title SafeMath | |
| * @dev Math operations with safety checks that throw on error | |
| */ | |
| library SafeMath { | |
| function mul(uint256 a, uint256 b) internal constant returns (uint256) { | |
| uint256 c = a * b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.24; | |
| // <ORACLIZE_API> | |
| /* | |
| Copyright (c) 2015-2016 Oraclize SRL | |
| Copyright (c) 2016 Oraclize LTD | |
| Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.24; | |
| /** | |
| * This contract specially developed for http://diceforslice.co | |
| * | |
| * What is it? | |
| * This is a game that allows you to win an amount of ETH to your personal ethereum address. | |
| * The possible winning depends on your stake and on amount of ETH in the bank. | |
| * | |
| * Wanna profit? |