B9lab-ETH30: RockPaperScissors – B9lab-ETH30:石头剪刀区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,B9lab-ETH30: RockPaperScissors – B9lab-ETH30:石头剪刀区块链毕设代写 是一篇很好的国外资料

B9lab-ETH30: RockPaperScissors

Small project and assisted by https://academy.b9lab.com

You will create a smart contract named RockPaperScissors whereby:

  • Alice and Bob play the classic rock paper scissors game.
  • to enrol, each player needs to deposit the right Ether amount, possibly zero.
  • to play, each player submits their unique move.
  • the contract decides and rewards the winner with all Ether wagered.

Of course there are many ways to implement it so we leave to yourselves to invent. How can this be the 3rd project and not the 1st?? Try.

Stretch goals:

  • make it a utility whereby any 2 people can decide to play against each other.
  • reduce gas costs as much as you can.
  • let players bet their previous winnings.
  • how can you entice players to play, knowing that they may have their funding stuck in the contract if they faced an uncooperative player?

B9lab-ETH30:石头剪刀布

小型项目,由https://academy.b9lab.com

您将创建一个名为RockPaperScissors的智能合约:

  • 爱丽丝和鲍勃玩经典的石头剪刀布游戏。
  • 要注册,每位玩家需要存入正确的以太币金额,可能为零。
  • 要玩,每个玩家都提交自己独特的移动。
  • 合同决定并奖励赢家全部下注。

当然,有很多方法可以实现它,所以我们留给自己去发明。这怎么可能是第三个项目而不是第一个??尝试。

伸展目标:

  • 让它成为一个实用工具,任何两个人都可以决定互相比赛。
  • 尽可能降低汽油成本。
  • 让玩家下注他们以前赢的钱。
  • 如果球员面对一个不合作的球员,他们的资金可能会在合同中卡住,你怎么能吸引他们上场呢?你知道吗

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19494.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » B9lab-ETH30: RockPaperScissors – B9lab-ETH30:石头剪刀区块链毕设代写

提供最优质的资源集合

立即查看 了解详情