# Game

Game link: <https://app.ethxy.com>

## Game introduction

After you create your character, you'll be asked to play a game.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FxdHz2YZ9aJUJLhxFfCwV%2Fimage.png?alt=media&#x26;token=df2bb66a-d169-4357-9516-7ef84a73274b" alt=""><figcaption></figcaption></figure>

Pressing on "Play game" will get you started on your first game!  After your first game, you'll be given a choice of denominations to play in the future.

## Game loading

As the game is on-chain, your action to play must be logged on the blockchain.  Thanks to Base's 2-second mining times, the mining process should only take a short moment.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FqvW5EeCINMx6KnGBNH78%2Fimage.png?alt=media&#x26;token=da4ec1b3-b667-4f24-9c2b-bfdc6143e01b" alt=""><figcaption></figcaption></figure>

After your transaction is mined, you'll move onto the Matchmaking phase where it'll look for another player playing the same denomination.  For the 0.01 ETH and 0.1 ETH denominations, your opponent should be found fairly quickly.  For the higher 1 ETH denomination, it might require a longer period of time.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FcjfvkvgeHgR17XRfJDoG%2Fimage.png?alt=media&#x26;token=5bacc8c4-a13c-44c6-80a9-928db478f945" alt=""><figcaption></figcaption></figure>

Once your opponent has been found, you'll see a "Prepare for Battle" loading screen.  This is presented when your game is being dynamically generated for viewing.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2Fe48possJ6dgsfM8Aw9N2%2Fimage.png?alt=media&#x26;token=aefae87f-0b4d-44e6-b9ad-1d7da052e0da" alt=""><figcaption></figcaption></figure>

## Game components

Once the game loads, you'll see the game board.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FIwJWg4MHcWfoCzu1wnnX%2Fimage.png?alt=media&#x26;token=561e0e5f-41dd-4c79-b7be-547a61f14bf5" alt=""><figcaption></figcaption></figure>

### Character info

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FD6htaZVzCZIaUyGyY47p%2Fimage.png?alt=media&#x26;token=d1f52990-699a-443d-b6f6-f3cc8d1f525f" alt="" width="134"><figcaption></figcaption></figure>

Your character will always appear on the **right side** during a battle.  At the top, you'll see your name, your rank, your level, and your class type denoted by your class emoji [🧑‍🌾](https://emojipedia.org/farmer)[🙏](https://emojipedia.org/folded-hands)[👑](https://emojipedia.org/crown)🪙⛰️.

### Your cards

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FaykVqqrRJ4trQGsunUm1%2Fimage.png?alt=media&#x26;token=4b0ad516-91f0-48d1-be01-ca6d2503833f" alt="" width="256"><figcaption></figcaption></figure>

Below your character you'll see your two hole cards.  These two cards are your private cards that only you can use to make a hand.  The % shown to the left of the cards represents your odds of winning given the current information revealed by the board.

### Game info

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2Fb90vrYlOP0RXQ52vqlsR%2Fimage.png?alt=media&#x26;token=189b2545-43fc-452d-be02-5daa768e699e" alt="" width="208"><figcaption></figcaption></figure>

At the center of the footer is the game info.  Here it will show you what stake (0.01 ETH, 0.1 ETH, 1 ETH) the game is being played.  Below the stake is the Game Number.  Using the game number, you can easily access footage of your game by going to [https://ethxy.com/game/\[GAME\_NUMBER\]](https://ethxy.com/game/29983).

### Community cards

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2Fx4J0zJCiUqE8xcHkhhnD%2Fimage.png?alt=media&#x26;token=a624edea-e792-457b-9373-b7a3993c8e2b" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FFlIFzdWMGfD8HUldv7qZ%2Fimage.png?alt=media&#x26;token=aaca9656-180f-4271-b962-88654a50c351" alt="" width="375"><figcaption></figcaption></figure>

The community cards are shared between yourself and your opponent.  Anyone can use the community cards to complete their five-card hand.  They are revealed gradually raising suspense as the game progresses to completion.

### Determining the winner

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FEpYokkORLmfOPcGG5RPO%2Fimage.png?alt=media&#x26;token=05808e97-324e-4b5f-ab3c-ccc2358f437a" alt="" width="375"><figcaption></figcaption></figure>

Once all 5 community cards are visible, the winner is determined by comparing the best 5 card hand out of the 7 cards each player has access to (5 community cards + 2 player hole cards).  Standard poker hand rankings apply to determine the winner.

Cards will be denoted \[Card Value]\[Suit Color].  For example, As would mean Ace of Spades.  5h would mean 5 of Hearts.

In order of strongest hand to weakest:

<table><thead><tr><th width="172">Hand</th><th>Description</th></tr></thead><tbody><tr><td>Royal Flush</td><td>A, K, Q, J, 10 all of the same color (ex: As, Ks, Qs, Js, 10s)</td></tr><tr><td>Straight Flush</td><td>5 cards in a row of the same color (ex: 2h, 3h, 4h, 5h, 6h)</td></tr><tr><td>Four-of-a-kind</td><td>4 cards of the same value (ex: 5s, 5h, 5d, 5c)</td></tr><tr><td>Full House </td><td>3 cards of the same value and 2 cards of the same value (ex: As Ah Ac 7h 7c)</td></tr><tr><td>Flush</td><td>5 cards of the same color (ex: Ah Jh 8h 4h 2h)</td></tr><tr><td>Straight</td><td>5 cards in a row (ex: 2h 3c 4d 5h 6s)</td></tr><tr><td>Three-of-a-kind</td><td>3 cards of the same value (ex: 3c 3h 3d)</td></tr><tr><td>Two pair</td><td>2 cards of the same value and another 2 cards of the same value (ex: 4h 4c 9s 9d)</td></tr><tr><td>One pair</td><td>2 cards of the same value (ex: Kh Kd)</td></tr><tr><td>High card</td><td>A single highest card (ex: As)</td></tr></tbody></table>

After the winner is determined, the pot is automatically deposited inside your EthXY wallet.

### Protocol fee

The protocol fee as denoted below is levied on the pot of the game, dependent on the denomination of the game played.

| Denomination | Fee  |
| ------------ | ---- |
| 0.01 ETH     | 2.5% |
| 0.1 ETH      | 2%   |
| 1 ETH        | 1.5% |

### Invite code

After the game, the winner's referral code is displayed, inviting any viewers of the game to join EthXY.  If a user joins using the winner's code, they will get 1 REP adding to their reputation score and +10 points.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FWCckmTf3u2VnpgQOD7j5%2Fimage.png?alt=media&#x26;token=639c1e2c-6c65-4016-984f-e3208adc809d" alt="" width="375"><figcaption></figcaption></figure>

### Full game in action

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2F0mYGsWrhinWtLYCu7gVn%2F29983-0.gif?alt=media&#x26;token=09c34ff6-67e4-4f47-a456-cced878f55e5" alt=""><figcaption></figcaption></figure>

### After the game

After the game is played, there are two options available: "View rewards" or "Play again".  Tapping on "Play again" will start another game with the same denomination that you just played.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2F1OwwFrOO6fpvGsZmcgUX%2Fimage.png?alt=media&#x26;token=013d0beb-6fcb-407a-a137-6e597022f988" alt="" width="375"><figcaption></figcaption></figure>

After the game is played, there are two options available: "View rewards" or "Play again".  Tapping on "Play again" will start another game with the same denomination that you just played.

### View rewards

Tapping on "View rewards" will show you your character sheet.  Here it covers your current level progress and reputation progress.

<figure><img src="https://3204398063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnZAZEDHEEW0lUfX97Esu%2Fuploads%2FALAmjuXLf6pQGyx0Xxds%2Fimage.png?alt=media&#x26;token=391d8df9-1f36-442f-b929-60986de46f1d" alt=""><figcaption></figcaption></figure>

### Experience gain

Experience gained varies based on the denomination game that you just played and your current level.  The level cap is currently 30.  The table below gives you a guide for XP:

| Your Level    | 1-10   | 11-20  | 21-30   |
| ------------- | ------ | ------ | ------- |
| 0.01 ETH Game | 1 XP   | 0.1 XP | 0.01 XP |
| 0.1 ETH Game  | 10 XP  | 1 XP   | 0.1 XP  |
| 1 ETH Game    | 100 XP | 10 XP  | 1 XP    |

### Reputation gain

Reputation is gained strictly by referrals.  For every referral, you gain 1 RP.   There are up to 60 Reputation Levels.
