Automated Puzzle Solver
LinkedIn N-Queens Solver
Automatically scrapes and solves LinkedIn's daily Queens puzzle
- .NET
- TypeScript
- Playwright
- AWS Lambda
- Cloudflare Workers
- SQLite
- Terraform
How It Works
01
Scrape
A scheduled AWS Lambda spins up a Playwright headless browser, opens the day's LinkedIn Queens puzzle, and extracts the board's size and color regions.
02
Solve
The board is modeled as an undirected graph. Constraint propagation prunes impossible cells region-by-region until a single valid queen placement remains.
03
Publish
The solution is pushed onto a Cloudflare Queue and rendered here at the edge — the board on the right is today's puzzle, solved automatically.
The Algorithm
Challenges
- Implementing an efficient constraint satisfaction algorithm for modified N-Queens puzzle
- Get daily puzzle info from Linkedin website
Solutions
- Leveraged an undirected graph representation of the puzzle and solved using constraint propagation
- Used Playwright to automate browser interactions and retrieve daily puzzle data
Highlights
- Solves daily N-Queens puzzle for any difficulty
- Automated LinkedIn game interaction
- Serverless deployment on AWS and Cloudflare