Hey everyone,
I wanted to share a personal project I recently built, primarily using Cursor as my coding assistant. It’s a logic puzzle game called Enhanced Queens Game, and it’s my attempt to innovate on the classic N-Queens problem.
Project Link: https://queensgame.io/
GitHub Repo: GitHub - airobus/queensgame.io: An innovative evolution of the classic N-Queens problem, featuring colorful region constraints for spatial reasoning challenges.
The main idea was to create a more challenging version of the Queens puzzle by adding a third constraint: colored regions. So, on top of the classic row/column rules, you also have to place only one queen per color block.
How I used Cursor AI in this project:
- Component Scaffolding: I used prompts like “Create a React component for a game board using a 2D array state, styled with Tailwind CSS” to quickly generate the basic structure of the UI.
- Logic Refactoring: The core game logic for checking conflicts (row, column, region, and adjacency) was quite complex. I frequently pasted my functions into Cursor and asked it to “Refactor this logic for better readability” or “Find any performance bottlenecks in this validation function.” It was great at simplifying nested loops.
- Boilerplate & Types: It was a huge time-saver for generating TypeScript types from my data structures and for writing repetitive utility functions.
This project was a great experience to see how an AI-first editor can speed up the development workflow, especially for solo developers.
I’d love for you to check out the game and the source code. Any feedback on the game itself or on how I could have better utilized AI in the code is welcome!
Thanks!