Surge
Surge is a real time PvP gaming platform on Flow EVM, where two players stake crypto, play quick skill-based games, and the winner takes most of the pot instantly.
视频
描述
Based on the Flow EVM testnet, Surge is a peer-to-peer, real-time Web3 gaming platform. It enables two players to stake cryptocurrency, link their EVM-compatible wallets, and immediately engage in quick skill-based games like reflex duels or memory challenges. WebSocket technology allows both users to play the same game side by side on their own devices after being matched through live matchmaking. Score updates are synchronized in real time.
After the game, 1.5 tokens (from a 2-token pot) are automatically sent to the winner, while 0.5 tokens are paid to the platform as a service fee. All wagers are safely stored in a Flow smart contract, where each player stakes an equal amount and the platform escrows the money. All fund transfers are managed by the contract, which ensures instantaneous, transparent, and trustless payouts. In order to provide a smooth user experience and blockchain-grade security, all gameplay logic is off-chain for speed, but payouts and earnings distribution are verifiable on-chain.
本次黑客松进展
During the hackathon, we nailed the core build on Day 1—got the frontend up with Next.js and React, including a clean landing page, wallet integration (using Blocto and MetaMask in EVM mode), and basic interfaces for all five games: Memory Match, Number Memory, Pattern Predictor, Reflex War, and Word Scramble. The big win was adding WebSockets via Socket.IO, so players can jump into matches and see each other's scores updating live as they play on their own devices. It feels super responsive.Day 2 was all about the backend and smart contracts. We deployed the Flow EVM contract on testnet to handle escrow and payouts—players stake their tokens (like 1 each for a 2-token pot), funds get locked, and at the end, the winner grabs 1.5 while the platform takes 0.5 as the fee. Used Firebase for matchmaking queues and state tracking too. Ran full end-to-end tests: staking, matching, playing (even simulated a Reflex War duel with synced reaction times), and instant payouts. Hit about 95% functionality, threw in some anti-cheat checks and reconnection logic for dropped connections. For the demo, we showed two players staking, competing head-to-head, and getting paid out right away—judges loved the innovation in Web3 PvP mini-games on Flow. Total code ended up around 5K lines across everything. Our small team of three leaned hard on tools like Lovable for UI polish and Cursor for coding speed—got great feedback like "solid UX and scalable setup, could be top 10 material."