From 594b63bc3571ec64c340fc57d5ea53e919350bb4 Mon Sep 17 00:00:00 2001 From: Vicky Zhang Date: Sat, 16 Jan 2021 11:58:48 -0800 Subject: [PATCH] fix(learn): Clarify sudoku solver instructions (#40604) * Clarify sudoku solver instructions * decrease spaces --- .../quality-assurance-projects/sudoku-solver.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md b/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md index a82a0a8cab..0a1fb9f7e7 100644 --- a/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md +++ b/curriculum/challenges/english/06-quality-assurance/quality-assurance-projects/sudoku-solver.md @@ -17,11 +17,14 @@ When you are done, make sure a working demo of your project is hosted somewhere # --instructions-- -- All puzzle logic can go into `/controllers/sudoku-solver.js` -- 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" +- All puzzle logic can go into `/controllers/sudoku-solver.js` + - The `validate` function should take a given puzzle string and check it to see if it has 81 valid characters for the input. + - The `check` functions should be validating against the *current* state of the board. + - 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. +- 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`: