Learn how to explore the recursive code by using the Visual Studio debugger.
- [Instructor] Let's go to our unit tests…and see if this actually finds us a solution.…So we know from the first three methods we can check…whether the pieces are attacking each other.…And so now, I want to see if we can place queens…in such a way that we can actually place queens…from left to right, starting at the leftmost column.…Place a queen in a position in one of the rows,…and once you've placed the queen,…take a step to the right, go through the rows…in the next column until you make it to the…far right column.…
And so we'll place a break point here…and actually step into our code.…Click in the column next to 49,…and I'll right click the unit test and say debug.…So at this point, press F 11 or down arrow…to step into the method, make some space, okay.…So what are we doing?…Press the step into and step over,…or use the icons up here, depending on what we're…trying to see.…
And so the first one, we just want to step over.…We want to say, if the board is now,…we'll create a new one.…And remember, the parameter coming in from the test,…
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.