Introduction to OOP
Chapter 6: The Eight Queens Puzzle:
next
previous
audio
real
text
The Last Queen
Two approaches to handling the leftmost queen -
Null pointers - each queen must then test for null pointers before sending a message
Special ``sentinel'' value - indicates end of line for queens
Both versions are described in text.
Intro OOP,
Chapter 6
, Slide 12
The complete solutions in each language are not described in the slides, but are presented in detail in the text.
A
Java applet
version is available.