在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:PortalNetwork/nifty-game开源软件地址:https://github.com/PortalNetwork/nifty-game开源编程语言:JavaScript 76.5%开源软件介绍:
This project is a crypto card game that uses OpenZepplin. The contract is compiled and deployed under the ERC-721 non-fungible token standard with truffle framework. After deploying onto the Ethereum blockchain, users will be able to play the game by interacting with the smart contract through DAPP’s front-end interface. Acquiring game card: Users can acquire game cards using ETH. Every game card will have a game point on it, which will be used to determine the winner later in the game. RolesCard CollectionPlayers can aquire card using ether. Each card will have a random points on it, which will be used to deternmine the winner in the card game. Card BattleOnce entered the game, players will need to choose a card to play for the round. Each round, the smart contract will randomly decide either card with larger or smaller point wins the round. At the same time, the smart contract will also randomly generate a number in order to compete with the player. Winner of the game will receive the price. DashboardYou can view the card battle history about all the games you played. ERC-721 TokenERC-721 non-fungible token: ERC-721 is a free, open standard that describes how to build non-fungible or unique tokens on the Ethereum blockchain. While most tokens are fungible (every token is the same as every other token), ERC-721 tokens are all unique (with unique ID). ContractsYou can find contract detail under
Technical stackFrontend
UI
Smart contract/Solidity
Test environment/Private chain
Requirements
How To Install DependenciesFirst install required dependencies: You'll need local ethereum node, I recommend
Install truffle:
Then install contract dependencies:
How To TestFirst make sure that local ethereum node is running. Execute:
Now you can compile and deploy contracts:
Run contract tests:
PlaygroundWe already deployed contracts to Ropsten network. You can play with them RIGHT NOW.
Card ListSee CARD.md for more information. ContributingSee CONTRIBUTING.md for how to help out. LicenceSee LICENSE for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论