KARO

This is a privacy focused, multiplayer UNO card game played on chain.

Visit Repo
KARO banner

About

We have developed a decentralized UNO card game leveraging Kakarot (a zkevm built usiing cairo). By utilizing Kakarot for its robust blockchain capabilities and a privacy layer we have built a secure and transparent card gaming environment that adheres to the principles of Web3.

Problem:

Traditional online card games suffer from trust issues where players doubt the fairness of the game. Centralized platforms often have control over the game mechanics, leading to potential manipulation or lack of transparency. Additionally, the visibility of players’ hands and decks can compromise the integrity of the game, as some players might gain an unfair advantage.

Solution:

Our UNO card game, built on the Kakarot blockchain with a privacy layer addresses these concerns by ensuring that all game mechanics are decentralized and transparent, while the privacy layer guarantees that players' hands and the deck remain hidden. This ensures that no player can gain an unfair advantage, and the integrity of the game is preserved. The integration of a commit-and-reveal mechanism further ensures that all moves are verifiable without compromising privacy.

Detailed Project Description

The project consists of several key components that ensure a secure, transparent, and fair gaming experience:

Game Logic:

Decentralized Gameplay: The core game logic, including card shuffling, dealing, and turn management, is implemented on chain using Solidity smart contracts. This ensures that all game actions are transparent, verifiable, and tamper-proof.

Game State Management and Updates: The state of the game (e.g., current turn, remaining cards, and played cards) is managed on-chain, ensuring that it is consistent, tamper-proof, and available to all players in real-time. State updates occur with every action taken by players, such as drawing a card or playing a card. The states are synced across clients using socket.io

Action Validation and Application: Each player’s action is validated on-chain to ensure it adheres to the game rules. Invalid actions are rejected, and the game state is updated only when valid actions are applied.

State Reconstruction and Verification: To maintain fairness and transparency, the game state can be reconstructed and verified by any participant or observer using the transaction history recorded on the blockchain. This ensures that all players can audit the game at any time.

Privacy Layer:

Confidential Hands and Decks: The hands of each player and the remaining deck are encrypted and stored in the client the other aspects are hashed and stored on chain leveraging its privacy-preserving capabilities. This ensures that no player, except the one holding the cards, can view the contents of any hand . Cryptographic Operations: Cryptographic primitives such as hashing and encryption/decryption are employed to ensure the security and privacy of game data. For example, the deck is shuffled and encrypted and only the relevant cards are decrypted for each player.

Deck Shuffling and Initial State Generation: The deck is shuffled in a cryptographically secure manner ensuring that the order of cards is random and unknown to all players. The initial game state is generated with encrypted decks and distributed in a manner that ensures no information leakage.

Commit-and-Reveal Mechanism:

Ensuring Fairness: A commit-and-reveal scheme is used to prevent cheating. Players first commit to their actions (e.g., the card they intend to play) by submitting a hash. After all commitments are made, they reveal their actions. This prevents any player from changing their action based on others' actions.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

FairBET

A decentralized roulette platform focused on ensuring fair play, privacy, and trust using Nillion and Sign protocol.

Trustless Tricksters

A decentralized poker game built on Morph zkEVM, featuring secure card shuffling, Chainlink VRF for fairness, XMTP chat, and Web3Auth login. Experience the future of poker with fast, low-cost, and cheat-resistant gameplay on the blockchain. 🃏🔐🚀 #Web3Poker

zkBlackjack

zkNoidBlackjack is a trustless, provably fair Blackjack game using Mina Protocol's zkNoid platform. Play anonymously with on-chain proof that cards are dealt fairly!