About the Project

Inspiration
The idea for Queen Rule came from the classic N-Queens puzzle, which is both a fun challenge and a brilliant exercise in logic and strategy. I wanted to bring this puzzle to the Reddit community in an engaging and interactive format.

What I Learned
This project deepened my understanding of HTML, CSS, and JavaScript for creating an interactive and visually appealing game. Additionally, I learned to work with the Reddit API, Devvit, and Reddit Webview, which allowed me to embed the game seamlessly into Reddit's platform.

How I Built It
I used HTML, CSS, and JavaScript for the game interface and logic. The N-Queens algorithm powers the core mechanics, while Reddit API and Devvit were used to integrate the game with Reddit, making it accessible through the platform’s Webview. Players progress through 4 rounds of increasing difficulty (4x4, 6x6, 8x8, and 10x10).

Challenges Faced
The biggest challenges included ensuring the game logic worked efficiently for larger boards and adapting the interface for Reddit’s Webview. Debugging API calls and managing the asynchronous nature of data retrieval also required significant effort.

Conclusion
Building Queen Rule was a rewarding journey that combined my love for puzzles with web development. It not only helped me grow my technical skills but also provided a unique way to share a classic challenge with Reddit's vibrant community.

Built With

Share this project:

Updates