Inspiration
"3Card Poker" is Web3 DApp Game that utilizes ZKP for transactions, with asset records stored on an immutable blockchain.
What it does
"3Card Poker" are relatively simple and require at least two people to participate. The game uses a deck of playing cards with the size of the king removed. It is usually played by three or four people. Each person can get three cards, and the person with the largest face wins.
How we built it
Players create a game room and share the link for others to join. Each player receives 3 cards, and this information is stored on the Aleo blockchain. Following the rules, players can bet、call、 challenge others or fold within the countdown in each round. The game continues until only one player remains, who becomes the winner. All card information is kept on the blockchain to protect privacy; other players cannot view the cards. Only those who interacted with a player can ultimately see their cards. Use the Soter | Aleo wallet Chrome extension for game actions.
Challenges we ran into
The game involves frequent interactions that are difficult to entirely put on the chain. Aleo's privacy chain experiences slow interaction with the blockchain, requiring improvements for a better user experience flow.
Accomplishments that we're proud of
Created an Aleo contract after quickly learning Aleo's Leo language. The contract is designed to store basic game information on to the blockchain.
What we learned
Participating in the zkHackathon project allowed me to delve deeper into the latest knowledge about Aleo and absorb experiences from outstanding projects within the Aleo ecosystem.
What's next for 3Card Poker
Improving User Interface: Provide useful information during wait times, such as loading animations, progress bars, or friendly prompts, to let users know that the system is processing their request.
Data Compression for Transmission: Optimize data transmission methods to reduce the amount of data transferred, thereby shortening interaction times.
Local Computation: Consider performing some computations locally to reduce the frequency of interactions with the chain, thus enhancing response speed.
Log in or sign up for Devpost to join the conversation.