Skip to content

The classic game of Hot Potato, but this time the hot potato is an Ethereum non-fungible token (NFT).

Notifications You must be signed in to change notification settings

MxGutierrez/hot-potato

Repository files navigation

Hot potato

The classic game of Hot Potato, but this time the hot potato is an Ethereum non-fungible token (NFT).

Contracts

Potato ERC20 (POT)

Currency used for game buy-ins. You can claim a 100 POT daily gift.

HotPotato ERC721 (HPT)

The undesired NFTs which, for some reason, nobody wants 🤷‍♂️. Each HPT belongs to a single game, both having the same identifier (token ID == game ID).

HotPotatoGame

Stores game logic (create, join, start game, claim win, etc.).

The game

Each game can have up to 8 players, one of whom will get burned by the hot potato and get the loser award.

All game transactions are done through Metamask.

Game creation

The game starts when a leader player kicks off a game. Each game creation or join costs an entry worth 20 POT, so if you want to create a game, make sure you can afford it.

create

Joining game

Log in to your account, make sure you have 20 POT, and paste in the game ID previously sent to you by the leader player. Click join, approve transactions, and you are in.

join

Starting game

Once players have joined, the leader player will go ahead and click start game. This will start the game for all players. A randomly chosen player will be honored with starting off with the hot potato in hands.

start

Transfering hot potato

Most of the time, NFTs come as a benefit, but this is not the case. The one who has it gets the humiliation, so free yourself from it ASAP. Just click on the unfortunate player and send him a warm gift 🔥 after approving the transaction.

transfer

Game ending

The hot potato can burn someone at any time; once it does, the game ends and winners can claim the bounty of the loser's ticket worth of POT, split among the winners.

end-and-claim

About

The classic game of Hot Potato, but this time the hot potato is an Ethereum non-fungible token (NFT).

Topics

Resources

Stars

Watchers

Forks