Inspired by the ‘Todame’ potatoes (토다메감자), pride of Sejong city, this project develops a Web3 “hot potato” game built upon a smart contract. A game initiates when a user requests for the generation of a new “potato” token to the game smart contract, along with the sending of a participation fee of one game coin, and other users can participate in the game by also paying that same amount of participation fee. The maximum number of participants per “potato” is eleven. And there can be at most ten “potato” tokens “alive” simultaneously, signifying that there can be up to ten games being run at the same time. Once the maximum number of players is reached, the game is started and players can then freely send the token to other participating players. The addresses of the participants are all displayed for all players. The “potato” detonates three after random time intervals, and players who owned the token at the time of detonation are deemed lost. The token is detonated when the transaction time reaches randomly determined block times, which would not exceed 24 hours. Then, the participants who did not lose are given rewards in game coins. The rewards are distributed evenly from the participation fee stake.
The “potato” token is a non-fungible token created by the game smart contract. The detonating time of the “potato” token is determined by calculating the time passed from the block generation time of the token. The game also has its own coin for the game’s economy.
In the front-end web interface of the game, the time passed from the block generation time would be displayed. Also, the addresses of all participants in the current game and the player currently possessing the “potato” token would also be displayed. The animation when you pass the token and when the token “detonates” would be provided.
The game is open to further features that can include ideas like player customization, etc., utilizing the game coins. A player ranking system can also be provided for healthy competition between players.
The game can have missions that players that received the token need to complete before they can send the token to other players.
https://dlwhj.github.io/todamegamja/
https://docs.google.com/presentation/d/1hhU3wxUIDqX5TM1qgK8cVOq861SjXu5vo_CepyWp6TI/edit?usp=sharing
https://youtu.be/1xfuM-vl0aE