← Back to home

ChainSmash

ReactNode.js

ChainSmash is a Web3-native card game where players battle using blockchain

Screenshots

ChainSmash screenshot 1
ChainSmash screenshot 2
ChainSmash screenshot 3

Problem Statement

ChainSmash is a Web3-native card game where players battle using blockchain market cap values. Each card represents a major blockchain, with its power (number) determined by real-time market capitalization data from oracles. Blockchain Cards14 Chains Examples (ranked by marketcap): 1. Bitcoin (BTC) - Highest mcap 2. Ethereum (ETH) 3. BNB Chain (BNB) 4. Solana (SOL) 5. Avalanche (AVAX) 6. Cardano (ADA) 7. Polygon (MATIC) 8. Polkadot (DOT) 9. TRON (TRX) 10. Chainlink (LINK) 11. Near (NEAR) 12. Fantom (FTM) 13. Arbitrum (ARB) 14. Optimism (OP) - Lowest mcap

Solution

Backend (Node.js Server)Game State Management: Use a database (e.g., MongoDB or Redis) to manage game states and synchronize players' actions. Matchmaking: Implement a system to pair players based on their skill levels or preferences. WebSockets: Utilize WebSockets for real-time updates and low-latency communication between players. Security: Add features like authentication and authorization for player accounts, preventing cheating or unauthorized access.Game Engine (Godot with ENET)Card Mechanics: Define a flexible system for card properties (e.g., attack, defense, abilities). Support different card types (e.g., spells, creatures, artifacts). Multiplayer Sync: Use ENET to handle packet reliability and ensure game state consistency between clients. AI Players: Implement AI opponents to make the game playable in single-player mode. Animations and Effects: Add visual effects for card interactions, such as glowing cards for buffs or shaking screens for high-impact moves.Frontend (React)UI/UX Design: Build an intuitive interface for browsing decks, starting matches, and playing cards. Include dynamic animations for game events.Godot Game Engine

Hackathon

ETHGlobal Bangkok

2024

Contributors