Spandan-Bhattacharya / Solve_it

A website which can give you the solution to many solvable games like sudoku, nonogram, crossword puzzles
https://solve-it-self.vercel.app
MIT License
19 stars 48 forks source link

User Input in N Queen Solver #243

Closed Surajit0573 closed 8 months ago

Surajit0573 commented 8 months ago

Currently, the N-Queen solver has a feature that allows users to select a queen position by clicking on any square. However, this feature is currently useless as the solver only provides a single solution and does not consider the user's input.

There may be multiple solutions that include the user's desired position, and the solver should be able to find them. If it is unable to find a solution that includes the user's desired position, it should notify the user and provide one correct solution in case of blank input.

Example :

image

image

image

Surajit0573 commented 8 months ago

Assign me under JWOC 2024, if approved.

Spandan-Bhattacharya commented 8 months ago

@Surajit0573 Go for it! In case the user provided input has no solution, inform the user and give a random solution.