Search projects, hackathons, sponsors and tech

    ← All projects

    Flip or Flop

    Blockchain card battle game powered by live Pyth price feeds and provably fair randomness

    Demo

    About

    Flip or Flop is a blockchain-based card battle game where cryptocurrency market data directly influences gameplay. Players fight 1v1 using crypto-themed cards (ETH Warrior, BTC Butcher, SOL Assassin, ADA Paladin, AVAX Ranger) whose stats update dynamically with real-time Pyth Network price feeds. Provably fair randomness is ensured by Pyth Entropy, and players stake ETH to battle, with smart contracts settling outcomes transparently. Key Features: Live Price Integration: Card stats change with real crypto prices Fair Randomness: Pyth Entropy ensures verifiable fairness Animated Arena: Retro pixel-style battle visuals This project showcases how decentralized data oracles can create dynamic, transparent, and engaging Web3 gaming experiences.

    How it's made

    The game’s frontend is built with Next.js and React for real-time interactivity, styled with Tailwind CSS for a pixel-art aesthetic, and powered by Socket.io for live multiplayer battles. Ethers.js enables seamless wallet and blockchain interactions. On the blockchain side, it integrates Pyth Price Feeds for dynamic market-driven stats and Pyth Entropy for provably fair randomness, with Solidity smart contracts managed via Hardhat handling staking and battle settlements. Technically, it features a dynamic stat system, entropy-based randomness, a hybrid off-chain/on-chain architecture, and real-time multiplayer battles with validated price data using staleness checks and TWAP. Additional systems include automated price updates, a fallback demo mode, sprite-based character animations, and gas-optimized contracts. The project leverages Pyth Network for real-world data and randomness, forming the backbone of its decentralized gameplay mechanics.