Liar's Poker

Liar's Poker

Bluff, Bid, Win

Created on 8th December 2024

Liar's Poker

Liar's Poker

Bluff, Bid, Win

The problem Liar's Poker solves

Liar's Poker is a bluffing game traditionally played with U.S. currency, particularly dollar bills. The game combines elements of poker, probability, and deception, making it both strategic and psychologically challenging.

Challenges we ran into

One of the significant challenges we faced while building this project was integrating multiplayer functionality in a decentralized environment. Creating a seamless and responsive experience where multiple users could interact in real-time while maintaining the principles of decentralization was complex. Here's how we tackled it:

Challenges and Solutions

Multiplayer Functionality
Challenge: Implementing real-time communication and synchronization among users required efficient handling of peer-to-peer connections and ensuring minimal latency.
Solution: We utilized WebRTC for peer-to-peer communication and combined it with decentralized signaling servers. This approach ensured real-time updates and reduced server dependency.

Smart Contract Design
Challenge: Designing a robust smart contract to handle user identities, interaction logic, and on-chain data storage without making the system prohibitively expensive.
Solution: We optimized the contract using modular architecture and implemented EVM-compatible logic for cross-platform scalability. Techniques like state channels and lazy minting were used to minimize gas fees and improve performance.
Cross-Chain Interoperability

Additional Features

Since we started the project specifically for this hackathon, we focused on building the core features and functionality during the event. However, we did manage to incorporate a few new features and enhancements that significantly improved the project as we progressed:

New Features and Enhancements During the Hackathon:

Real-Time Multiplayer Interaction

  • What we added: Initially, we had a basic setup for the multiplayer aspect, but during the hackathon, we enhanced it by incorporating real-time interaction between players. This allowed users to communicate, interact with the environment, and take part in shared activities seamlessly.
  • How: We implemented WebRTC for real-time communication and interaction, ensuring a fluid and responsive experience even in a decentralized system.
    Smart Contract Optimization
  • What we added: While our initial smart contract had basic functionality, we focused on optimizing it to handle complex interactions, including decentralized identity management and on-chain data handling.
  • How: We refactored the smart contract to reduce gas costs and ensure smooth scalability across different environments. This involved modularizing the contract to separate logic for different activities and using EVM-compatible smart contracts for cross-chain compatibility.
    Cross-Chain Interoperability
  • What we added: Initially, our focus was on Solana, but we added the ability to connect with EVM-based chains through bridging protocols like Wormhole, ensuring users could access the platform regardless of the chain they are on.
  • How: By utilizing Wormhole, we created cross-chain bridges that allow assets and data to move seamlessly between Solana and EVM-based networks.
    3D World and User Avatars
  • What we added: We started with basic 2D elements, but during the hackathon, we enhanced the user interface by integrating a 3D world for m

Tracks Applied (10)

AI X Crypto

Polygon

Crypto x AI Prize

Coinbase Developer Platform

Best Developer Feedback

Coinbase Developer Platform

OnchainKit Pool Prize

akl

Coinbase Developer Platform

Checkout component pool prize

Coinbase Developer Platform

Best Developer Experience Improvement for EAS

Ethereum Attestation Service

Build Innovative Consumer Apps on Base

Base

Best use of Substreams

The Graph

Pool Prize

okto by CoinDCX

Reels Prize

okto by CoinDCX

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio