All Projects → PortalNetwork → nifty-game

PortalNetwork / nifty-game

Licence: MIT license
🃏🎮A NFT(ERC721) card game build on Ethereum, Truffle, Ganache and hosting on IPFS.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to nifty-game

Embark
Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
Stars: ✭ 3,478 (+1466.67%)
Mutual labels:  dapp, ipfs, smart-contracts, decentralized
qd-messages-ts
No ads, no tracking. Just a lightning fast peer-to-peer cross-platform messenger that doesn’t sell you out.
Stars: ✭ 22 (-90.09%)
Mutual labels:  dapp, ipfs, decentralized
trystero
🤝 Serverless WebRTC matchmaking for painless P2P — Make any site multiplayer in a few lines — Use BitTorrent, IPFS, or Firebase
Stars: ✭ 512 (+130.63%)
Mutual labels:  dapp, ipfs, decentralized
eth-plot
r/place inspired Dapp
Stars: ✭ 36 (-83.78%)
Mutual labels:  dapp, ipfs, truffle
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (-25.68%)
Mutual labels:  dapp, ipfs, decentralized
Unstoppable Wallet Ios
A secure and decentralized Bitcoin and other cryptocurrency wallet for iPhone. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 180 (-18.92%)
Mutual labels:  dapp, ipfs, decentralized
react-truffle-metamask
Build an DApp using react, redux, saga, truffle, metamask
Stars: ✭ 25 (-88.74%)
Mutual labels:  smart-contracts, truffle, saga
Trace
Supply chain transparency platform proof-of-concept based on the Ethereum blockchain ✍️
Stars: ✭ 52 (-76.58%)
Mutual labels:  dapp, decentralized, truffle
haal
Hääl - Anonymous Electronic Voting System on Public Blockchains
Stars: ✭ 96 (-56.76%)
Mutual labels:  dapp, smart-contracts, ganache
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (-82.43%)
Mutual labels:  dapp, smart-contracts, truffle
Motoro
Smart contracts for decentralized rentals of vehicles.
Stars: ✭ 96 (-56.76%)
Mutual labels:  dapp, decentralized, truffle
filecoin-box
Filecoin flavored Ganache Truffle box
Stars: ✭ 23 (-89.64%)
Mutual labels:  ipfs, truffle, ganache
Dasp
The Decentralized Application Security Project
Stars: ✭ 166 (-25.23%)
Mutual labels:  dapp, smart-contracts, decentralized
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (-9.01%)
Mutual labels:  dapp, smart-contracts, truffle
Dfile
[Python + Flask] DFile: A fancy S3-based file sharing mode
Stars: ✭ 79 (-64.41%)
Mutual labels:  dapp, ipfs, decentralized
prometheus-spec
Censorship-resistant trustless protocols for smart contract, generic & high-load computing & machine learning on top of Bitcoin
Stars: ✭ 24 (-89.19%)
Mutual labels:  ipfs, smart-contracts, decentralized
contracts
Alice smart contracts
Stars: ✭ 57 (-74.32%)
Mutual labels:  dapp, smart-contracts, truffle
Notes
[DEPRECATED] Textile Notes App
Stars: ✭ 35 (-84.23%)
Mutual labels:  dapp, ipfs, decentralized
Disperse
React/Redux dApp (decentralized app) boilerplate using Ethereum's blockchain
Stars: ✭ 36 (-83.78%)
Mutual labels:  dapp, decentralized, truffle
create-truffle-dapp
Create and deploy Truffle projects with no configuration.
Stars: ✭ 17 (-92.34%)
Mutual labels:  dapp, smart-contracts, truffle

Non-fungible token game

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.

Roles

Card Collection

Players 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 Collection

Card Battle

Once 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.

Card Battle

Dashboard

You can view the card battle history about all the games you played.

Game History

ERC-721 Token

ERC-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).

Reference

Contracts

You can find contract detail under contracts/ directory:

Technical stack

Frontend

  • React
  • Redux
  • Saga
  • Web3(MetaMask)

UI

  • Sass
  • Material-UI

Smart contract/Solidity

  • Truffle

Test environment/Private chain

  • ganache

Requirements

  • NodeJS 8.0+ recommended.
  • Windows, Linux or Mac OS X.

How To Install Dependencies

First install required dependencies:

You'll need local ethereum node, I recommend ganache-cli. You can install it from npm.

npm install -g ganache-cli

Install truffle:

npm install -g truffle

Then install contract dependencies:

npm install

How To Test

First make sure that local ethereum node is running. Execute:

ganache-cli --gasLimit 0xffffffffff -p 8545

Now you can compile and deploy contracts:

truffle compile && truffle migrate

Run contract tests:

truffle test

Playground

We already deployed contracts to Ropsten network. You can play with them RIGHT NOW.

Contract Token address Transaction hash
CryptoHerosGame 0xb4FF27d8cD1C5b1e3D4BD8A8FFEBdA9BE9517a4b 0x49bb8698e2951a0c7eb091038b500694cdf37c74ec51d6c98d91823dc9595b95
CryptoHerosToken 0xa82Bc392bF65d03A796E1666d27594fB31De4B93 0xf41868e6b59020965831aac218e1a521b283ab4975f10a44cf0908f6ce586ad7

Card List

See CARD.md for more information.

Contributing

See CONTRIBUTING.md for how to help out.

Licence

See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].