Inspiration
We were inspired by classic flood-fill puzzle games but wanted to create something more engaging for Reddit's community. The military conquest theme transforms a simple color-matching mechanic into an epic battlefield strategy game, making each move feel like deploying troops to expand your empire.
What it does
ColorWar is a strategic puzzle game where players command armies to conquer a 14x14 battlefield. Starting from the top-left corner, you have 25 moves to unite all territories under one army by selecting colored troops. Each deployment floods adjacent territories of the same color, expanding your control across the grid until you achieve total battlefield domination.
How we built it
Built using Reddit's Devvit platform with Phaser.js for the game engine, TypeScript for type safety, and Express for backend logic. The game features responsive design for mobile and desktop, particle effects for troop deployments, and smooth animations. We used Vite for compilation and integrated directly with Reddit's developer ecosystem for seamless community engagement.
Challenges we ran into
Optimizing the flood-fill algorithm for smooth performance across different devices was challenging. Creating responsive UI that works equally well on mobile and desktop required careful positioning calculations. Balancing game difficulty to be accessible yet challenging took multiple iterations of the starting grid generation algorithm.
Accomplishments that we're proud of
Successfully created an engaging puzzle game that transforms a simple mechanic into something that feels epic and strategic. The smooth animations, particle effects, and military theming make each move satisfying. The responsive design ensures great gameplay across all devices, and integration with Reddit's platform opens it to a massive community.
What we learned
Learned how to effectively use Reddit's Devvit platform and integrate Phaser.js for web-based gaming. Gained experience in responsive game design, flood-fill algorithms, and creating engaging user experiences through theming and visual effects. Understanding how to balance accessibility with strategic depth was crucial.
What's next for Colorwar
Planning to add multiplayer battles where players compete to conquer the same battlefield, custom challenge creation tools, leaderboards for fastest conquests, and seasonal tournaments. We're also exploring power-ups, different battlefield sizes, and integration with Reddit's karma system for rewards.
Built With
- devvit
- typescript


Log in or sign up for Devpost to join the conversation.