Domino Class Reference
[Scripts for problems]
Inherits Example.
Detailed Description
Example: Solitaire DominoThe task is to place domino pieces on a board. Each piece covers two fields and has two numbers. There are 28 pieces, from 0-0 to 6-6. The board is set up with a number in each field that must match the number of the domino piece placed on that field.
Definition at line 69 of file domino.cc.
Puzzle specifications | |
| const int * | specs [] |
| Board specifications. | |
| const int | domino0 [] |
| Example 0 | |
| const int | domino1 [] |
| Example 1 | |
| const int | domino2 [] |
| Example 2 | |
| const int | domino3 [] |
| Example 3 | |
| const int | domino4 [] |
| Example 4 | |
| const int | domino5 [] |
| Example 5 | |
| const unsigned | n_examples = sizeof(specs)/sizeof(int*) |
| Number of specifications. | |
| const int * | specs [] |
| List of specifications. | |
Public Member Functions | |
| Domino (const SizeOptions &opt) | |
| Actual model. | |
| virtual void | print (std::ostream &os) |
| Print solution. | |
| Domino (bool share, Domino &s) | |
| Constructor for cloning s. | |
| virtual Space * | copy (bool share) |
| Copy space during cloning. | |
Related Functions | |
| (Note that these are not member functions.) | |
| const unsigned int | n_examples |
| Number of board specifications. | |
Constructor & Destructor Documentation
| Domino::Domino | ( | const SizeOptions & | opt | ) | [inline] |
| Domino::Domino | ( | bool | share, | |
| Domino & | s | |||
| ) | [inline] |
Member Function Documentation
| virtual void Domino::print | ( | std::ostream & | os | ) | [inline, virtual] |
| virtual Space* Domino::copy | ( | bool | share | ) | [inline, virtual] |
Friends And Related Function Documentation
const int* specs[] [related] |
const unsigned int n_examples [related] |
const int domino0[] [related] |
const int domino1[] [related] |
const int domino2[] [related] |
const int domino3[] [related] |
const int domino4[] [related] |
const int domino5[] [related] |
const unsigned n_examples = sizeof(specs)/sizeof(int*) [related] |
The documentation for this class was generated from the following file:
- examples/domino.cc (Revision: 7674)
