fix(learn): Clarify sudoku solver instructions (#40604)
* Clarify sudoku solver instructions * decrease spaces
This commit is contained in:
@ -17,11 +17,14 @@ When you are done, make sure a working demo of your project is hosted somewhere
|
|||||||
|
|
||||||
# --instructions--
|
# --instructions--
|
||||||
|
|
||||||
- All puzzle logic can go into `/controllers/sudoku-solver.js`
|
- All puzzle logic can go into `/controllers/sudoku-solver.js`
|
||||||
- All routing logic can go into `/routes/api.js`
|
- The `validate` function should take a given puzzle string and check it to see if it has 81 valid characters for the input.
|
||||||
- See the `puzzle-strings.js` file in `/controllers` for some sample puzzles your application should solve
|
- The `check` functions should be validating against the *current* state of the board.
|
||||||
- To run the challenge tests on this page, set `NODE_ENV` to `test` without quotes in the `.env` file
|
- The `solve` function should handle solving any given valid puzzle string, not just the test inputs and solutions. You are expected to write out the logic to solve this.
|
||||||
- To run the tests in the console, use the command `npm run test`. To open the Repl.it console, press Ctrl+Shift+P (Cmd if on a Mac) and type "open shell"
|
- All routing logic can go into `/routes/api.js`
|
||||||
|
- See the `puzzle-strings.js` file in `/controllers` for some sample puzzles your application should solve
|
||||||
|
- To run the challenge tests on this page, set `NODE_ENV` to `test` without quotes in the `.env` file
|
||||||
|
- To run the tests in the console, use the command `npm run test`. To open the Repl.it console, press Ctrl+Shift+P (Cmd if on a Mac) and type "open shell"
|
||||||
|
|
||||||
Write the following tests in `tests/1_unit-tests.js`:
|
Write the following tests in `tests/1_unit-tests.js`:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user