Bitcoin Forum
April 25, 2024, 11:20:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [ETH] Play Rock Paper Scissors - Featured on ether.camp blog !  (Read 2248 times)
askolein
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 16, 2016, 10:08:10 PM
 #21

A more fair function would be to have only one function to reveal, testing the 3 sha3 hand hash comparison and finding out. It would then make the other player to ignore the first reveal, so nobody know yet who wins.

Then, it would allow the players to bet and leave, free to play or not, and if they do not play after 2 hours, both players are refunded, and nobody knows who would have won.

What do you think Wink Wink
1714044002
Hero Member
*
Offline Offline

Posts: 1714044002

View Profile Personal Message (Offline)

Ignore
1714044002
Reply with quote  #2

1714044002
Report to moderator
1714044002
Hero Member
*
Offline Offline

Posts: 1714044002

View Profile Personal Message (Offline)

Ignore
1714044002
Reply with quote  #2

1714044002
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714044002
Hero Member
*
Offline Offline

Posts: 1714044002

View Profile Personal Message (Offline)

Ignore
1714044002
Reply with quote  #2

1714044002
Report to moderator
1714044002
Hero Member
*
Offline Offline

Posts: 1714044002

View Profile Personal Message (Offline)

Ignore
1714044002
Reply with quote  #2

1714044002
Report to moderator
1714044002
Hero Member
*
Offline Offline

Posts: 1714044002

View Profile Personal Message (Offline)

Ignore
1714044002
Reply with quote  #2

1714044002
Report to moderator
whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 17, 2016, 09:04:31 AM
 #22

It is indeed possible to use a single function to reveal that would cost a bit more gas tho. It would keep the move more hidden in the sense that you would not know which function the player used. But you could still see on the EVM (ex on live.ether.camp) what was the move of the player since you have to store the true move somewhere once revealed.

But anyways, I don't understand the next part of your message. You said : ""Then, it would allow the players to bet and leave, free to play or not, and if they do not play after 2 hours, both players are refunded, and nobody knows who would have won.""

Why would it allow more to bet and leave than in the current game ? Right know you can bet and immediatly reveal once your are matched.

sydhelly
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
May 17, 2016, 02:21:10 PM
 #23

We need more player for this game, I waited 2 hours for an opponent to finally come Sad

askolein
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 17, 2016, 03:30:35 PM
 #24

It is indeed possible to use a single function to reveal that would cost a bit more gas tho. It would keep the move more hidden in the sense that you would not know which function the player used. But you could still see on the EVM (ex on live.ether.camp) what was the move of the player since you have to store the true move somewhere once revealed.

But anyways, I don't understand the next part of your message. You said : ""Then, it would allow the players to bet and leave, free to play or not, and if they do not play after 2 hours, both players are refunded, and nobody knows who would have won.""

Why would it allow more to bet and leave than in the current game ? Right know you can bet and immediatly reveal once your are matched.


I wasn't clear, forgive me Wink

I meant, that, right now, you force people to reveal in less than 2 hours. I imagined this game to be less "stressfull", like, nobody is playing, i bet, i leave, i'm 50% sure i'm going to get back in 2 hours, if i don't, i won't loose, both players will be refunded.


But yeah, speaking of the EVM, you are right, somewhere there must be the "play" saved.
whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 17, 2016, 03:48:46 PM
 #25

Yes that I can do.

Maybe 24hours would be the best time for expiration then.
so you have time to sleep, if it's late Smiley

dearbesz
Sr. Member
****
Offline Offline

Activity: 375
Merit: 250


View Profile
May 17, 2016, 07:20:38 PM
 #26

how can i join here? Cheesy
whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 17, 2016, 08:44:21 PM
Last edit: May 18, 2016, 09:31:17 AM by whysos3rious
 #27

0) Import the contract in Mist using the contract address and the contract ABI :

ABI at the bottom of this page : http://etherscan.io/address/0xDD88C4D189585B650a3FE3d0E39147fcca59Ec32#code
contract address : 0xDD88C4D189585B650a3FE3d0E39147fcca59Ec32

1) Encrypt your Hand with a secret (change it every time) on the website : matching-ethers.com/rps. ex input : secret = mamamia and hand = rock ex output : 0x694175464a29105b9e3743992e59ab09559add0bc3d8b16e0e0945f55f68b8f0

2) Send your encryped hand code (ex: 0x694175464a29105b9e3743992e59ab09559add0bc3d8b16e0e0945f55f68b8f0) with 0.1 ETH using the sendEncryptedHand function (in Mist).

3) Be matched with an opponent (follow progress on the real time website and cancel waiting if no opponent comes).

4) You have 2 hours to reveal your hand with the appropriate function. (ex: use revealRock with input your secret)

5) Receive 0.198 ETH if you win or if opponent does not reveal. In case of draw, receive 0.1 ETH.


How to interact with the contract ?

In mist wallet you open the contract that you have just imported and there you can see the interface of the contract. There you can select several functions.

For step 2 you need to use the function named sendcryptedhand . This function asks for an input of 32 characters: use the code you generated at step 1

At step 4 when you will reveal your hand, you use another function on the same page in mist : for instance revealRock and you provide your secret.

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 18, 2016, 07:31:43 AM
 #28

The website will be down this morning for a small update.
Stay tuned Smiley

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 18, 2016, 09:32:41 AM
 #29

The website is back up.

The contract has been updated following your request, the expiration time is now 24hours.
You can now play and come back in time to reveal, you can even sleep and reveal the next day Smiley

To play don't forget to import the new contract :
0xDD88C4D189585B650a3FE3d0E39147fcca59Ec32

http://etherscan.io/address/0xDD88C4D189585B650a3FE3d0E39147fcca59Ec32#code

Enjoy !!

sydhelly
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
May 18, 2016, 12:56:00 PM
 #30

Thanks for the update, that's nicer like that indeed

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 19, 2016, 08:10:16 AM
 #31

Ok everything seems to be working properly on the new contract Smiley

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 23, 2016, 05:47:21 AM
 #32

Don't forget to change your secret every time you play and to use 10 letters/numbers.

You can keep the website open or notepad to store your secret until you reveal.


whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 23, 2016, 10:17:43 AM
 #33

Crypted RPS was featured on Ether Camp's Blockchain Paparazzi !

A nice review of the game and it covers all the features very well.

Also a reminder to use secure enough passwords Smiley

http://blog.ether.camp/post/144800327903/the-blockchain-paparazzi-playing-rock-paper

sydhelly
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
May 23, 2016, 02:49:29 PM
 #34

Congrats on the article !  Cool

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 26, 2016, 11:02:03 AM
 #35

Thanks for the support guys, happy you like it  Cheesy

sydhelly
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
May 26, 2016, 02:10:49 PM
 #36

I have to say, it's nice to be able to play every day with opponents on your game, the wait is never too long now !

Are you planning any new games ?

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 28, 2016, 12:37:43 PM
 #37

Are you planning any new games ?

Yes Smiley
There will be more games on the platform www.whysos3rious.com
Can't be too specific for now, but expect some news shortly, maybe 2 wooks ? Wink

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
May 31, 2016, 10:13:23 AM
 #38

Expect a game of pure luck Smiley

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
June 10, 2016, 11:48:27 AM
 #39

New game lauching soon Smiley
Expect more news today !  Cheesy

whysos3rious (OP)
Member
**
Offline Offline

Activity: 81
Merit: 10

Play Rouleth ! http://www.rouleth.com


View Profile WWW
June 11, 2016, 03:32:46 AM
 #40

My new game :
The Rouleth

https://github.com/Bunjin/Rouleth

Launching in 12 hours !

http://imgur.com/9Tmqqor

Pages: « 1 [2]  All
  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!