CRC Card for Queen

Here is a CRC card description for the queen objects.

Each queen can be initialized. When initialized, it finds a position so that it cannot attack or be attacked by any of its neighbors to the left.

Should that initial position prove to be not part of the more global solution, each queen can be asked to find another position, its next position, which is also agreeable to itself and its neighbors on the left.

A queen can print its current position. It will pass this message on to its neighbor, so that all positions are printed.

Finally, a queen can take a pair of coordinates, and determine if it or any of its neighbors can attack a given position.

[audio] [real] Text to accompany slide6, in Chapter 5 of An Introduction to Object-Oriented Programming