Queens Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: n-Queens puzzlePlace n queens on an n times n chessboard such that they do not attack each other.
Definition at line 34 of file queens.cc.
Public Member Functions | |
Queens (const Options &opt) | |
The actual problem. | |
Queens (bool share, Queens &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (void) |
Print solution. | |
Protected Attributes | |
IntVarArray | q |
Position of queens on boards. |
Constructor & Destructor Documentation
|
The actual problem.
|
|
Constructor for cloning s.
|
Member Function Documentation
|
Perform copying during cloning.
Implements Gecode::Space. |
|
Print solution.
Reimplemented from Example. |
Member Data Documentation
|
Position of queens on boards.
|
The documentation for this class was generated from the following file:
- examples/queens.cc (Revision: 3506)