Bitcoin Forum
May 14, 2024, 03:05:56 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ETH] PARALLEL GAMBLING - Bet 0.1 ETH, 1 ETH, 5 ETH in a 3 players game -  (Read 564 times)
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 24, 2016, 05:38:20 PM
Last edit: April 27, 2016, 10:32:59 PM by askolein
 #1


**********************
******************************************************************
******************************************************************
**********************


-- nice picture :p

Parallel Gambling

3 players gambling game

3 independant play zones :


0.1 ETH - Zone 1
1 ETH - Zone 2
5 ETH - Zone 3



**********************
******************************************************************
******************************************************************
**********************




Hello everyone, Parallel Gambling is 3 Players Round Gambling game.

When 3 players have bet, the total balance is distributed randomly according to their bet zone :


First -- 170 %-- Big Winner
Second -- 130 %-- Small Winner
Third -- 0% -- Looser



Every betters have a 2/3 probabily to win !
Everything is distributed randomly



A fee of 1% is taken, a website will come in some weeks with another project.



Your play zone is selected automatilically according to your bet
A new round start when a player bet in a zone



You can always cancel your bet if the round is idling more than 6 hours !
Use the function "Cancel Round and Refund".

You can bet in any zone, and come back later to see if you have won, every player have statistics, use Ethereum Wallet ! Smiley




Tested on the ethereum Mordern testnet.
VERIFY THE CODE to prevent any scam, always.

Parameters can be modified, only when no one is playing. I will listen to the community needs Smiley.



**********************
******************************************************************
******************************************************************
**********************

Verified Source Code:   https://etherscan.io/address/0x83051e225a06682ff0dde9bcd267d8418c4cbcd7
Contract :   0x83051e225a06682ff0dde9bcd267d8418c4cbcd7

Send with 400000 gas. If the transaction fails, just resend, it can fail if mist fail to evaluate gas usage. Unused gas is always refunded.


MyEtherWallet Users, use this link:
https://www.myetherwallet.com/?gaslimit=450000&to=0x83051e225a06682ff0dde9bcd267d8418c4cbcd7&value=10#send-transaction

Who will be the luckiest ?
Gambling is risky, bet what you can loose.





JSON interface:
Code:
[ { "constant": false, "inputs": [ { "name": "_owner", "type": "address" } ], "name": "ChangeOwnership", "outputs": [], "type": "function" }, { "constant": true, "inputs": [], "name": "LookAtCollectedFees", "outputs": [ { "name": "Fees", "type": "uint256", "value": "0" }, { "name": "info", "type": "string", "value": "Fees collected, in finney." } ], "type": "function" }, { "constant": false, "inputs": [ { "name": "new_fee", "type": "uint256" } ], "name": "ModifyFeeFraction", "outputs": [], "type": "function" }, { "constant": true, "inputs": [ { "name": "id", "type": "uint256" }, { "name": "zone", "type": "uint256" } ], "name": "PlayerInfoPerZone", "outputs": [ { "name": "Address", "type": "address" }, { "name": "Payout", "type": "uint256" }, { "name": "UserPaid", "type": "bool" }, { "name": "info", "type": "string" } ], "type": "function" }, { "constant": false, "inputs": [], "name": "CollectAllFees", "outputs": [], "type": "function" }, { "constant": true, "inputs": [], "name": "LookAtDepositsToPlay", "outputs": [ { "name": "InZone1", "type": "uint256", "value": "100" }, { "name": "InZone2", "type": "uint256", "value": "1000" }, { "name": "InZone3", "type": "uint256", "value": "5000" }, { "name": "info", "type": "string", "value": "Deposit for each zones, in finney. Surpus are always refunded." } ], "type": "function" }, { "constant": false, "inputs": [ { "name": "zone", "type": "uint256" } ], "name": "CancelRoundAndRefundAll", "outputs": [], "type": "function" }, { "constant": false, "inputs": [ { "name": "new_time_max", "type": "uint256" }, { "name": "new_first_prize", "type": "uint256" }, { "name": "new_second_prize", "type": "uint256" }, { "name": "new_third_prize", "type": "uint256" }, { "name": "deposit_1", "type": "uint256" }, { "name": "deposit_2", "type": "uint256" }, { "name": "deposit_3", "type": "uint256" } ], "name": "ModifySettings", "outputs": [], "type": "function" }, { "constant": true, "inputs": [ { "name": "zone", "type": "uint256" } ], "name": "LookAtLastTimePerZone", "outputs": [ { "name": "LastTimeForSelectedZone", "type": "uint256", "value": "1461519204" }, { "name": "TimeToWaitEnablingRefund", "type": "uint256", "value": "21600" }, { "name": "info", "type": "string", "value": "Timestamps, use this to know when you can cancel a round to get back funds, TimeToWait in seconds !" } ], "type": "function" }, { "constant": true, "inputs": [], "name": "LookAtNumberOfPlayers", "outputs": [ { "name": "InZone1", "type": "uint256", "value": "0" }, { "name": "InZone2", "type": "uint256", "value": "0" }, { "name": "InZone3", "type": "uint256", "value": "0" }, { "name": "info", "type": "string", "value": "Players in a round, in each zones." } ], "type": "function" }, { "constant": true, "inputs": [], "name": "LookAtPrizes", "outputs": [ { "name": "FirstPrize", "type": "uint256", "value": "170" }, { "name": "SecondPrize", "type": "uint256", "value": "130" }, { "name": "LooserPrize", "type": "uint256", "value": "0" }, { "name": "info", "type": "string", "value": "Prizes in percent of the deposit" } ], "type": "function" }, { "constant": true, "inputs": [], "name": "LookAtBalance", "outputs": [ { "name": "BalanceOfZone1", "type": "uint256", "value": "0" }, { "name": "BalanceOfZone2", "type": "uint256", "value": "0" }, { "name": "BalanceOfZone3", "type": "uint256", "value": "0" }, { "name": "info", "type": "string", "value": "Balances of all play zones in finney" } ], "type": "function" }, { "constant": true, "inputs": [ { "name": "addr", "type": "address" } ], "name": "GamblerPerAddress", "outputs": [ { "name": "Bets", "type": "uint256", "value": "0" }, { "name": "Deposited", "type": "uint256", "value": "0" }, { "name": "PaidOut", "type": "uint256", "value": "0" }, { "name": "info", "type": "string", "value": "Bets is the number of time you participated, no matter the zone." } ], "type": "function" }, { "inputs": [], "type": "constructor" } ]

Thank you for your ideas and suggestions  Wink

1715655956
Hero Member
*
Offline Offline

Posts: 1715655956

View Profile Personal Message (Offline)

Ignore
1715655956
Reply with quote  #2

1715655956
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715655956
Hero Member
*
Offline Offline

Posts: 1715655956

View Profile Personal Message (Offline)

Ignore
1715655956
Reply with quote  #2

1715655956
Report to moderator
1715655956
Hero Member
*
Offline Offline

Posts: 1715655956

View Profile Personal Message (Offline)

Ignore
1715655956
Reply with quote  #2

1715655956
Report to moderator
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 24, 2016, 05:43:03 PM
 #2

I played with myself to show you payouts Smiley
Obviously playing with yourself is not worth it in normal time :p


Tell me if you like it !


Please read the code carefully, and post here you review !  Grin
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 25, 2016, 10:29:14 AM
 #3

The contact is live, don't hesitate to play with 0,1 Eth to understand before playing with more.

Each zone works the same way, simple.  Cool
solidity_lover
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 25, 2016, 03:09:06 PM
 #4

Ponzis were fun, but these kind of gambling can be fun too. I'll participate with small amount just to try my luck :p

I didn't reviewed the code properly, is there anyone to review it carefully ?
It is good to be able to experiment things that doesn't require a lot of player in a a short period of time.


PS : the ability to cancel round is good, that's why we need some good programmers to review it, thanks !
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 25, 2016, 04:11:11 PM
 #5

Ponzis were fun, but these kind of gambling can be fun too. I'll participate with small amount just to try my luck :p

I didn't reviewed the code properly, is there anyone to review it carefully ?
It is good to be able to experiment things that doesn't require a lot of player in a a short period of time.


PS : the ability to cancel round is good, that's why we need some good programmers to review it, thanks !


The contract is working fine ATM in every zone, zone 3 is still virgin ahah :p
I'm not worried by anything. Hope other people than me will agree on the code, i made it the clearest possible !


Hope the community will wake up some more  Grin 
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 25, 2016, 10:47:36 PM
 #6

1 Eth not much by these times  Cool gambling away's fun with cheap coins, ahah   Grin
solidity_lover
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 26, 2016, 08:50:36 AM
 #7

Look like it is getting some people involved in 2 first zones, i like it Smiley
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 26, 2016, 01:54:13 PM
 #8

I just demonstrated how one could cancel the round Smiley it refunded both 2 participants with their deposit !
One more proof of proper working for this contract.

Don't hesitate to invest even in zone 3, ask me if you want me to higher the deposit for zone 3 to like 7,10,15 ETH, if there is any "big" players around here.
Every zones can be adapted to fit a type of player Smiley
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
April 27, 2016, 10:34:41 PM
 #9

The code is now safe and very well tested, this contract is now established, don't hesitate to enter a game, time doesn't matter !
askolein (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 01, 2016, 10:02:39 AM
 #10

Game still running !  Wink
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!