Join Simon Allardice for an in-depth discussion in this video Building a solution with recursion and backtracking, part of Code Clinic: Swift.
- Let's make this program.…Into Xcode, I'll create a new project.…This will be in OS X application,…the Command Line Tool, as simple as it gets.…I'll call this one EightQueens…and it will, of course, be written in Swift.…That will give us one main.swift file.…Some developers, the first thing they would…naturally do here is define a chessboard.…Even before they figure out an algorithm,…they'd say to themselves, "I know I'm going to need…"some kind of data structure to represent the chessboard."…That's a two-dimensional array of rows and columns…or maybe even a chessboard class…with properties and methods.…
Well I'm going to take a different approach.…I will not be modeling the chessboard itself here.…Instead, I'm going to model a simple queen class.…I'll create a new Swift file in this project.…Just a regular Swift file, call it Queen.…And this will be a very basic class definition.…It's that as simple as it gets.…Each queen object is gonna take care…of its own position, its own row and column.…It will also have an Initializr here just so we can give…
Simon introduces challenges and then provides an overview of his solutions in Swift. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
1. Problem One: Exploring Lake Pend Oreille
2. Problem Two: 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.