Turn-based NFT fighting game on Hedera: mint fighters, stake HBAR, battle NPCs, win rewards!
CryptoFightClub (CFCL) - Project Description CryptoFightClub is a blockchain-based fighting game built on Hedera Hashgraph where players mint fighter NFTs and battle computer opponents for HBAR rewards.
How It Works Mint a Fighter NFT with random stats (Strength, Dexterity, HP) Stake HBAR (minimum 0.001) to enter a fight Battle a randomly generated NPC using turn-based combat Win 1.8x your stake back, or lose it to the contract Technical Implementation Two Smart Contracts deployed on Hedera Testnet (fully verified) On-chain combat system with deterministic turn-based mechanics Verifiable randomness using blockchain data for fair outcomes Ultra-low fees (~$0.005 per fight) enabling micro-stakes gameplay Key Features Complete on-chain gameplay - no off-chain dependencies Instant battles - fights resolve in under 5 seconds Provably fair - all game logic is transparent and verifiable Comprehensive testing - 39 tests covering all functionality
How CryptoFightClub Was Built Tech Stack Hedera Testnet - EVM blockchain for ultra-low fees Solidity 0.8.30 - Smart contracts with OpenZeppelin Hardhat 3.0 + ethers.js - Development and testing Key Implementation Two Smart Contracts:
FighterNFT - ERC-721 with on-chain random stats FightClub - Combat engine and HBAR staking Notable Hacks On-Chain Randomness Without Oracles: keccak256(abi.encodePacked(block.timestamp, block.prevrandao, player, tokenId)) Combined multiple blockchain variables for verifiable pseudo-randomness.
Complete Turn-Based Combat On-Chain:
Damage calculations with variance Turn order by DEX stats 50-round safety limits All deterministic and gas-optimized Hedera Benefits Sub-cent fees enable micro-staking Fast finality for instant battles EVM compatibility with standard tooling 39 comprehensive tests before deployment