[Tutorial] Big and Small Card Game Portal Network

Card game powered by blockchain and ERC-721 (NFT)

A
portalnetworkofficial
3 min readJul 25, 2018

--

‘Big and Small’ card game, hosted on IPFS. It is fully functional and decentralized.

Introduction

Big and Small is a card game that is built under the ERC-721 (NFT, non-fungible token) standard with truffle framework. Each card in the game is a ERC-721, so each card in the game is unique under a specific ownership.

The game is running on Ropsten Test Net, so it won’t cost you to play this game!

Getting started

First, you will need MetaMask to run the game. To download MetaMask, click here.

Once you downloaded MetaMask, create a wallet so you can receive testnet ETH later on. See tutorial.

Switch to Ropsten Test to play the game.

Go to Big and Small, and switch to Ropsten Test Network via your MetaMask.

After switching to Ropsten Test Network, click BUY and receive Test Faucet.
Simply request 1 ether from faucet and you will receive it within few minutes.

***You may also play the ‘Big and Small’ on website hosted on IPFS, completely decentralized. Visit game.portalnetworkweb.eth***

You will need Portal Network extension to help you redirect this BNS (blockchain name service). Download now.

How to play the game?

Acquiring the card

Get a new hero with 0.01 Ether

Now everything is ready. To play the game, acquire a ERC-721 card first, which will cost you 0.01 ETH. Once you sign a transaction and send it to our smart contract, you will receive a card with a random number on it. The number will be used to determine the winner later in the battle.

Battle time!

Once you have a card, you can compete with our bot.

Choose a card to play for the round and place the bet. You bet should be between 0.01 to 1 ETH.

Each round, the smart contract will randomly decide either card with larger number or smaller number wins the round. At the same time, the smart contract will also randomly generate a number in order to compete with the player.

Depending on the round, card with larger or smaller number will be the winner.

Winner of the game will be able to win 150% of the bet put in.

All smart contracts are available at our github page and there is one more thing…

Our developers have hidden several Easter Eggs in the game, so go ahead and search for it now!

Happy playing!

Follow Portal Network’s Channels then you won’t miss an update.

>>>  Join telegram & get latest update. -> Telegram <<<>>>  Build your own decentralized website -> Webuilder <<<

Social Media: Telegram|Reddit|Twitter | Facebook | Github |

Websites & Product: Official Website|Webuilder|Hackathon|

--

--