Join Todd McLeod for an in-depth discussion in this video Calculating our attack vectors, part of Code Clinic: Go.
- So now we're going to take a look at…how do we figure out attack vectors.…That's what I like to call this.…What are my angle of attack vectors…and how do we figure them out?…Well, for rows and columns, it's pretty straightforward.…Visually we can see those, right?…That's an attack vector.…They'll be able to attack each other.…These two queens will be able to attack each other.…These two queens will be able to attack each other.…And the mathematical representation of…figuring that out for a row or column is…if these guys, they both have the same column,…you can see the zero there for their coordinates,…great, they're going to be able to attack each other.…
They're in the same column.…They're in column zero.…Zero and zero.…And these guys are in the same row.…They're both in row one and one.…They're going to be able to attack each other.…So mathematically, we'd represent that like this.…But what about this one that's not quite so obvious?…To get this formula, and the reason why this formula works,…we're going to use the formula for a slope.…
Todd introduces challenges and then provides overviews of his solutions in Go. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Beginner
The files have moved, and I can't access them via HTTP as shown in the course.
1. Problem 1—Exploring Lake Pend Oreille
2. Problem 2—Image Analysis
3. Problem 3—Eight Queens
4. Problem 4—Accessing Peripherals
5. Problem 5—Recursion and Directories
6. Problem 6—Building the Web
- 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.