Introduction to OOP: Chapter 5: A Case Study : Eight Queens
[next]
[previous]
[audio]
[real]
[text]
Finding Next Solution
function next : boolean
if row = 8 then begin
if not neighbor.next then
return false
row := 0
end
row := row + 1;
return self.testOrAdvance
end
Intro OOP, Chapter 5, Slide 10