question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quality Assurance Projects - Sudoku Solver clearer instructions on logic

See original GitHub issue

Describe your problem and how to reproduce it: There are two major questions I had while I was doing this project, and it seems like other people also had similar issues.

1.) (There’s a similar issue to this already here, but this question deals with conflicting row/column/region.)

Q: Do we need to indicate if the value at a coordinate is conflicting with the final solution or with what is currently on the board?

If something could indicate that you only need to figure out checkRow/Column/RegionPlacement in sudoku-solver.js with what is currently on the board rather than checking with the final solution, that would help immensely.

2.) Q: For the solve() method in sudoku-solver.js, does it need to check against solution logic provided elsewhere in the backend only on the test inputs, or do we need to provide the solve logic ourselves for ANY given puzzleString input?

I received several conflicting answers when I asked on Discord, but I believe the right answer is that I need to provide the logic myself? Making this clearer on the /learn page by saying that we need to return the solved string with our own logic in solve() would be helpful.

These are probably not the clearest answers, but these were sufficient in helping me answer my questions that I had about this.

Add a Link to the page with the problem: https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/sudoku-solver

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
moT01commented, Dec 22, 2020

I am fine with adding this as well.

0reactions
vicky11zcommented, Jan 2, 2021

Hi, I’ve opened my first PR in this repo for this issue. Please take a look when you have a chance!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sudoku Solver - Quality Assurance Projects - freeCodeCamp
This is a full walkthrough for the Sudoku Solver project on freeCodeCamp. Firstly, we create some event listeners to validate puzzles and ...
Read more >
Sudoku Solver - The University of Edinburgh
The objective is to fill every cell with numbers 1 to n2, without using any number more than once in the same row,...
Read more >
FreeCodeCamp - Sudoku Solver - Man that was tough
While the Node.js and testing portion of this project was rather ... be able to express that method in logical steps code the...
Read more >
Analysis and comparison of solving algorithms for sudoku
DEGREE PROJECT, IN COMPUTER SCIENCE, FIRST LEVEL ... One of the simplest algorithms for solving sudoku puzzles is backtracking. The.
Read more >
Files - sujithkumar1707/solving-sudoku (v7) - Jovian
Collaborate with sujithkumar1707 on solving-sudoku notebook. ... www.freecodecamp.org/learn/quality-assurance/quality-assurance-projects/sudoku-solver" 235 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found