New Steem Blockchain Provably Fair, Peer 2 Peer Gambling DApp

in steem •  5 months ago 

Screenshot 2019-03-24 15.22.29.png

Today we are releasing our first in a long list of games planned for the Steem Blockchain.

Cupz.io is a Provably fair, Peer 2 Peer gambling app with a 1 in 3 chance of winning.

You will be presented with 3 cups, under one of the cups a ball is hidden. Each player in the game selects a cup and the correct guess takes the other two players’ stake minus the developer’s commission of 2%.

The commission will be used to fund further development of Cupz and other games, pay for referrals and fund a profit share scheme. We haven’t decided on the format for this yet, but we are leaning on the side of a larger payout for a small amount of players rather than tiny amounts shared between all players.

What does Provably fair mean?

The game is set up in such a fashion as to prevent any interference in the outcome. The winning cup is calculated using a Pseudo Random Number Generator which takes a seed that comprises a server seed and a client seed. At the start of each game new seeds are generated. The server seed is encrypted and posted to the Blockchain and the client seed is displayed on the website. On game completion the server seed, the encrypted server seed and the client seed are posted to the Blockchain along with the winners details. We have posted a REPL Snippet which allows you to take these details and check that the server seed does in fact match the posted encrypted seed and that using those two seeds plus the current block number at the time of placing the last guess as the seed for the Random Number Generator produces the same result for a given game.

Blockchain

The application Frontend interacts with the Steem Blockchain through the Keychain Steem Wallet Intro To Keychain, thanks to @yabapmatt, @aggroed, @stoodkev and @nateaguila for their great work on this project.

Transaction confirmations take around 3 seconds, allowing for a responsive gaming experience compared to other Blockchains. Although confirmation times are fast, actually getting the transaction back from the Blockchain can take up to 60 seconds. In order to mitigate against cheating, we wait for these confirmations before transferring any funds after the game is complete. Without doing this it would be possible for rogue players to alter their stake values in the front end thereby cheating you out of your possible winnings. If someone is found to be cheating in a game, we will refund your stake.

Referrals

We have a referral system that pays out 10% of the game commission every time your referral wins. You can get your referral link from the [website] (https://cupz.io) by clicking on the referral menu item.

Technology

We are passionate about Blockchain technology and would like the world to benefit from the possibilities it brings, however currently we need more people involved. It is our vision through fun games like this and a number of other projects we are working on across multiple Blockchains, to get as many people involved as possible. With that in mind we have tried to design this game to be as user friendly as possible and have pragmatically chosen the current best technologies available.

In order to provide a safe and responsive gaming experience we need a server that can manage the game state whilst we wait for the trustless power of Blockchain, so we host a server app on AWS EC2 (meh!), however state is stored in a decentralised OrbitDb running on the IPFS network. The frontend application has been developed using Elm, a functional, open source javascript framework with a Haskell tilt and interaction with the Steem Blockchain is enabled by the KeyChain Chrome Extension.

With this combination of technologies we have been able to develop a financially safe and responsive game, easily accessible by newcomers to the Blockchain ecosphere.


We hope you enjoy our game and wish you the best of luck. Feel free to join us on Discord for chat and support issues.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Comment removed. Account has been verified.

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://medium.com/@damian_88769/today-we-are-releasing-our-first-in-a-long-list-of-games-planned-for-the-steem-blockchain-ef664c61bcb7

Congratulations @cupz! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You made your First Comment
You received more than 10 upvotes. Your next target is to reach 50 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

3 years on Steem - The distribution of commemorative badges has begun!
Happy Birthday! The Steem blockchain is running for 3 years.
Vote for @Steemitboard as a witness to get one more award and increased upvotes!