Minority_rule
The Minority Rule Game is a psychological strategy game inspired by the Liar Game series, implemented as a decentralized application (dApp) on the Flow blockchain. Players stake FLOW tokens to enter,
视频
描述
Minority Rule is a competitive prediction game built on Flow blockchain where players answer yes/no questions, but only those who vote with the minority advance to the next round. The game continues until 1-2 players remain and
split the prize pool.
🏗️ Technical Innovation
- Commit-Reveal Voting: Uses SHA3-256 hashing to prevent vote manipulation and ensure fair play
- Automated Game Flow: Integrates with Flow's scheduled transaction system (Forte) for seamless round progression
- Scalable Architecture: Implements efficient pagination and contract-level filtering for thousands of games
- Full On-Chain Storage: All game data stored on-chain with optimized 3% fee structure to cover storage costs
🎮 Key Features
- Unified Web App: Players can both create and join games with intuitive React/Next.js interface
- Real-time Updates: Live game state monitoring with intelligent polling
- Creator Controls: Game creators set commit/reveal deadlines and manage game progression
- Player History: Comprehensive statistics including win rates and game participation
- Mobile Responsive: Works seamlessly across all devices
💡 Why It Matters
Combines game theory with blockchain technology to create a truly decentralized gaming experience. The minority rule mechanic creates unique strategic dynamics where conventional wisdom doesn't apply - sometimes being contrarian
is the winning strategy.
🛠️ Tech Stack
- Smart Contracts: Cadence on Flow blockchain
- Frontend: Next.js 15, TypeScript, Tailwind CSS
- Blockchain Integration: @onflow/fcl for wallet connectivity
- Automation: Flow Transaction Scheduler for automated round processing
本次黑客松进展
Minority Rule is a competitive prediction game built on Flow blockchain where players answer yes/no questions, but only those who vote with the minority advance to the next round. The game continues until 1-2 players remain and split the prize pool. - Complete Frontend Overhaul: Built comprehensive React/Next.js web application with unified dashboard, game creation, voting interfaces, and player history - Advanced Pagination System: Implemented contract-level pagination methods to handle thousands of games efficiently - added getGamesPage(), getGamesByCreator(), and getGamesWithPlayer() methods - Enhanced User Experience: Created specialized hooks and components for different user flows (creators vs players) with real-time statistics and filtering - Smart Contract Optimization: Added efficient game querying methods and enhanced game state management for better scalability - Real Game Data Integration: Replaced all placeholder data with actual blockchain queries, showing live game statistics, deadlines, and player participation 🏗️ Technical Innovation - Commit-Reveal Voting: Uses SHA3-256 hashing to prevent vote manipulation and ensure fair play - Automated Game Flow: Integrates with Flow's scheduled transaction system (Forte) for seamless round progression - Scalable Architecture: Contract-level pagination supports thousands of games with O(n) efficiency - Full On-Chain Storage: All game data stored on-chain with optimized 3% fee structure to cover storage costs 🎮 Key Features - Unified Web App: Players can both create and join games with intuitive interface - Real-time Updates: Live game state monitoring with intelligent polling based on game phases - Creator Controls: Game creators set commit/reveal deadlines and manage game progression - Player Statistics: Comprehensive history with win rates, games created/played/won - Efficient Game Discovery: Paginated game lists with filtering by status, creator, and participation 💡 Why It Matters Combines game theory with blockchain technology to create a truly decentralized gaming experience. The minority rule mechanic creates unique strategic dynamics where conventional wisdom doesn't apply. 🛠️ Tech Stack - Smart Contracts: Cadence on Flow blockchain with efficient pagination methods - Frontend: Next.js 15, TypeScript, Tailwind CSS with specialized hooks for different user flows - Blockchain Integration: @onflow/fcl for wallet connectivity with real-time data fetching - Automation: Flow Transaction Scheduler for automated round processing