Skip to content

Commit

Permalink
Merge pull request PortalNetwork#51 from seanchuangportal/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
PhyrexTsai authored Jul 25, 2018
2 parents 24a3c7c + db8bd98 commit 9ed0008
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ The contract is compiled and deployed under the ERC-721 non-fungible token stand
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.

Playing the game:
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 be able to win the bet put in.
## 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 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.

## ERC-721 Token

Expand Down
11 changes: 8 additions & 3 deletions README_zhTW.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@
這是一款加密卡牌遊戲,使用[OpenZepplin](https://github.com/OpenZeppelin/openzeppelin-solidity)
在ERC-721 non-fungible token 標準下建置合約,透過truffle框架編寫及部署合約,合約部署之後,使用者可以透過前端來跟dApp互動,再由dApp呼叫部署在以太坊上的合約來進行遊戲。

遊戲方式:
玩家先使用ether來兌換卡牌,每張卡牌上面有不一樣的點數。 擁有卡牌之後可以開始對戰,對戰開始之前玩家必須先選擇自己要出的卡牌,之後系統會隨機決定此回合是比大或是比小,並且隨機產生點數,玩家獲勝之後可獲得獎勵。
## 遊戲方式

## ERC-721 Token
#### 卡牌收集
玩家先使用ether來兌換卡牌,每張卡牌上面有不一樣的點數。

#### 卡牌對戰
擁有卡牌之後可以開始對戰,對戰開始之前玩家必須先選擇自己要出的卡牌,之後系統會隨機決定此回合是比大或是比小,並且隨機產生點數,玩家獲勝之後可獲得獎勵。

## ERC-721 Token

ERC-721 non-fungible token:
符合這合約的每個token都是不一樣的,擁有獨一無二的token ID,與ERC-20相比,ERC-20的token可以彼此互換的,使用者A的50個token與使用者B的50個token是沒有差別的,但如果是ERC-721的話因為每個token ID都不一樣,所以不可以互換,視為獨立的資產。
Expand Down

0 comments on commit 9ed0008

Please sign in to comment.