-
Grid Guardians: Battle for territory using live Reddit activity to fuel your conquest.
-
Selecting our sector domain (subreddit), and joining team
-
Basic game page showing 25 sectors of different domain, with day wise daily bonuses and challenge alongside leaderbord
-
Popup on screen on claiming sector, attacking, commenting, posting and defending. also deducting in enemys HP weakening ther castle
Inspiration We were inspired by classic territorial conquest games like Risk and Diplomacy, but wanted to create something uniquely suited for Reddit's community-driven platform. The idea was to blend strategic gameplay with Reddit's core activity - creating content. We asked ourselves: "What if every post and comment you make could fuel your conquest in a virtual battlefield?" This led to Grid Guardians, where community engagement directly powers gameplay, making it a true Reddit-native gaming experience that rewards active participation.
What it does Grid Guardians transforms Reddit into a competitive 24-hour territorial warfare arena. Players choose one of four teams (Red, Blue, Green, or Yellow) and battle for control of a 5×5 grid battlefield.
Core Gameplay: Earn Action Points (AP): Every post earns 10 AP, every comment earns 5 AP (max 100 AP/day) Strategic Actions: Use AP to claim unclaimed sectors (50 AP), attack enemy territories (30 AP), fortify your defenses (20 AP), or defend against attacks (15 AP) Sector Types: Different sectors offer unique advantages - Meme sectors, Tech hubs, Bonus zones, Entertainment districts, and Strategic positions Daily Challenges: Every 24 hours, a new challenge rotates (Meme Monday, Tech Tuesday, Wild Wednesday, etc.) that changes gameplay dynamics Live Leaderboard: Real-time rankings track top players by sectors owned, total HP controlled, and actions taken Battle Feed: Watch the war unfold with live notifications of attacks, defenses, and territory changes The game resets every 24 hours, creating a fresh battlefield where strategy and timing matter as much as raw AP accumulation.
How we built it Tech Stack: Frontend: React with TypeScript for type-safe component development UI Framework: Mobile-first responsive design with custom CSS Backend: Devvit framework (Reddit's official platform) with Hono for API routing Database: Redis for real-time state management and persistence Build Tools: Vite for fast development and optimized production builds Architecture: Implemented a hybrid rendering system combining Devvit's blocks with React components Created a real-time state synchronization system using Redis pub/sub patterns Built custom hooks for game state management and AP tracking Designed a modular component system (TeamSelector, Leaderboard, WarConsole, BattleComments, SectorNaming) Implemented server-side game logic with validation to prevent cheating Created a daily challenge system that automatically rotates based on UTC time Key Systems: AP generation system tied to Reddit post/comment creation Sector ownership and HP management with concurrent update handling Real-time battle notification system with toast messages Leaderboard calculation with efficient Redis queries Mobile-optimized touch controls and responsive grid layout Challenges we ran into
Real-time State Synchronization: Managing concurrent updates from multiple players attacking/defending the same sector simultaneously was complex. We solved this with Redis transactions and optimistic locking.
Mobile Performance: The 5×5 grid with real-time updates was initially laggy on mobile. We optimized by implementing efficient re-rendering strategies, memorization, and reducing unnecessary state updates.
AP Abuse Prevention: Players could potentially spam posts/comments to farm AP. We implemented daily caps (100 AP/day), cooldown timers, and server-side validation to ensure fair gameplay.
Daily Challenge Logic: Making challenges actually affect gameplay (not just display text) required deep integration with the action system. Each challenge needed custom logic that modified AP costs, HP bonuses, or attack mechanics.
Mobile-First Design: Fitting a 5×5 grid, action buttons, leaderboard, and battle feed on mobile screens without overwhelming users required multiple design iterations and careful UX considerations.
Accomplishments that we're proud of ✅ Seamless UGC Integration: Successfully tied Reddit's core activity (posting/commenting) directly to gameplay mechanics, creating a unique gaming experience that rewards community participation.
✅ Real-time Multiplayer: Built a fully functional real-time multiplayer system with concurrent player actions, live updates, and no lag on mobile devices.
✅ Daily Challenge System: Implemented 7 unique daily challenges that actually change gameplay mechanics, not just cosmetic changes - each day feels different to play.
✅ Mobile-First Success: Created a complex strategy game that works flawlessly on mobile devices, which is critical for Reddit's primarily mobile user base.
✅ Complete Game Loop: Delivered a fully playable game with all core features working - team selection, AP earning, sector claiming, attacking, defending, fortifying, leaderboards, and battle notifications.
✅ 24-Hour Cycle: Successfully implemented the daily reset system that keeps gameplay fresh and gives everyone a fair chance each day.
What we learned Redis Optimization: Learned advanced Redis patterns for handling high-frequency concurrent updates in real-time multiplayer games Mobile Gaming UX: Discovered the importance of touch-friendly controls, clear visual feedback, and simplified interfaces for mobile strategy games Devvit Platform: Gained deep expertise in Reddit's Devvit framework and how to build engaging experiences within Reddit's ecosystem Game Balance: Learned how to balance AP costs, HP values, and daily challenges to create fair and engaging gameplay Community-Driven Design: Understood how to design games that leverage existing community behaviors (posting/commenting) rather than fighting against them What's next for Grid Guardians - 24-Hour Territorial Battle Arena Short-term (Next 2 weeks): Tournament Mode: Seasonal rankings with prizes for top players Alliance System: Allow teams to form temporary alliances for coordinated attacks Achievement Badges: Unlock special badges for milestones (first claim, 10 victories, etc.) Custom Sector Names: Let players name their conquered sectors Medium-term (Next month): Expanded Grid: 7×7 or 10×10 grids for larger battles Power-ups: Special items earned through gameplay (shields, double damage, etc.) Clan System: Create persistent teams that compete across multiple daily cycles Spectator Mode: Watch battles unfold in real-time without playing Long-term (Next 3 months): Cross-Subreddit Wars: Multiple subreddits competing against each other Custom Game Modes: Weekend special events with unique rules NFT Integration: Optional cosmetic sector skins as collectibles Mobile App: Standalone mobile app with push notifications for attacks
Go to your Devpost submission → Click "Edit" → Add this line in description:
"Note: Latest version 0.0.3 includes bug fixes for sector numbering, mobile UI improvements, and AP reset logic. Live on r/gridguardians"
Built With
- devvit
- hono
- react
- redis
- typescript
- vite
Log in or sign up for Devpost to join the conversation.