I’ve been working on the Sudoku Solver project for the last several weeks, and have finally made a good amount of progress.
For some reason, however, I can’t get these two tests to pass:
(I’m pretty sure the error messages are because I haven’t written the unit tests or functional tests as I’ve seen a similar error on previous FCC projects.)
#1: " The return value from the POST
to /api/check
will be an object containing a valid
property, which is true
if the number may be placed at the provided coordinate and false
if the number may not. If false, the returned object will also contain a conflict
property which is an array containing the strings "row"
, "column"
, and/or "region"
depending on which makes the placement invalid."
#2 : " If value
submitted to /api/check
is already placed in puzzle
on that coordinate
, the returned value will be an object containing a valid
property with true
if value
is not conflicting."
Any insights into mistakes I’ve made or how the behavior of the app needs to change to get these “/api/check” tests to pass would be very much appreciated.
Live App URL: https://FCC-Sudoku-Solver.camchardukian.repl.co
Project Repository: GitHub - camchardukian/FCC-Sudoku-Solver