Inspiration
The inspiration for DeckMateAI came from a desire to integrate AI into gaming and community engagement in a seamless and exciting way. By combining elements of strategy, creativity, and competition, we aimed to build a tool that enhances the experience of Clash Royale enthusiasts within the Reddit community. DeckMateAI leverages advanced AI technology to help players craft the perfect decks, transforming the way users engage with the game.
What it does
DeckMateAI is the ultimate deck builder for Clash Royale, leveraging AI technology to help users craft their perfect decks based on personal preferences and strategies. It features a dynamic leaderboard, a simple and engaging game interface. It provides a platform for users to participate in custom Clash Royale games directly within Reddit.
How we built it
We built DeckMateAI using:
- Devvit API: For seamless integration with Reddit’s platform, including user authentication, subreddit management, and custom post types.
- Redis: To efficiently manage player scores and leaderboard rankings.
- TypeScript: For frontend and backend logic, ensuring smooth functionality across various components.
- Custom UI Components: To create a visually appealing and user-friendly interface.
- Async functions: For managing real-time updates, such as fetching leaderboard data, player statistics and fetch player cards.
Challenges we ran into
- Leaderboard Management: Implementing real-time rank updates while ensuring data consistency proved to be a complex task.
- UI Responsiveness: Designing an interface that works well on most devices.
- Integrating Async Operations: Handling multiple asynchronous processes like fetching user data, updating scores, and managing Redis calls required serious testing to avoid race conditions and ensure stability.
- Reddit API Limitations: Working within API rate limits and permissions while maintaining a smooth user experience.
Accomplishments that we're proud of
- Using OpenAI to create user deck and advanced algoorithms for creation of AI opponent.
- Successfully integrating a game-like experience into Reddit with an intuitive interface.
- Building a robust leaderboard system that dynamically updates and showcases top players.
- Enhancing community engagement by introducing a unique, interactive activity for Clash Royale fans.
- Learning and implementing advanced Redis and Devvit functionalities to handle complex operations.
What we learned
- Asynchronous Programming: Improved our ability to handle async workflows, ensuring smooth and error-free operations.
- Devvit API Insights: Understanding the nuances of Reddit’s developer tools and how to build engaging custom features.
- UI Design: Experimenting with different design principles to create a clean and responsive user experience.
- Advanced Redis Functionality: Using Redis for leaderboard and game state management taught us how to leverage its full potential for real-time applications.
What's next for DeckMateAI
- Custom Tournaments: Allowing moderators to host subreddit-wide tournaments with automated score tracking.
- Enhanced Analytics: Adding more detailed player stats, such as win/loss ratios and game history.
- Mobile Optimization: Ensuring the platform is fully optimized for mobile users.
- AI Recommendations: Introducing AI-driven deck suggestions and strategies based on player performance.
- Create Your Deck: Guests and players without a player tag can create their sample deck and experience the Arena.
- Complex Game Mechanics: Instead of working only with elixir and level, I plan to create some cards interactions.
Built With
- devvit
- heroku
- openai
- redis
- typescript
Log in or sign up for Devpost to join the conversation.