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
Queens::Queens | ( | const Options & | opt | ) | [inline] |
Queens::Queens | ( | bool | share, | |
Queens & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* Queens::copy | ( | bool | share | ) | [inline, virtual] |
virtual void Queens::print | ( | void | ) | [inline, virtual] |
Member Data Documentation
IntVarArray Queens::q [protected] |
The documentation for this class was generated from the following file:
- examples/queens.cc (Revision: 3506)