Learn how to check all the solutions discovered by our code against a known list of solutions.
- [Instructor] Which brings me to the last question:…how do we know the solutions that we came up with…are, in fact, correct?…We believe our calculation is correct,…but what we will do is check each of our solutions…against all the known correct solutions.…You can look at each of them individually,…you can draw them on a Chess Board individually,…but I happen to have gotten a list off the internet…of all of the existing solutions,…and so I put them into the Chess Board class for you…so you can test against them.…And what I have here is I'm saying, "Please make sure…that all the elements of the solution collection,…every single Board, exists in the list of solutions."…So ChessBoard.Solutions must contain each and every…one of these that I come up with using this piece of code.…
And so having run this particular unit test,…not just run all of them together.…Right click, run.…And by having made it through this test…and this very last one here,…I've not just tested by running my recursive method…to the point of obtaining a solution,…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.