Sudoku Class Reference
[Example scripts (models)]
Inherits Example.
Detailed Description
Example: Some Sudoku puzzlesDoes not really require any explanation...
Definition at line 61 of file sudoku.cc.
Sudoku specifications | |
Each specification gives the initial positions that are filled in, with blank squares represented as zeroes. | |
int | example_size (const char *s) |
int | value_at (const char *s, int n, int i, int j) |
Public Member Functions | |
Sudoku (const Options &opt) | |
Actual model. | |
Sudoku (bool share, Sudoku &s) | |
Constructor for cloning s. | |
virtual Space * | copy (bool share) |
Perform copying during cloning. | |
virtual void | print (void) |
Print solution. | |
Protected Attributes | |
const int | n |
IntVarArray | x |
Constructor & Destructor Documentation
Sudoku::Sudoku | ( | const Options & | opt | ) | [inline] |
Sudoku::Sudoku | ( | bool | share, | |
Sudoku & | s | |||
) | [inline] |
Member Function Documentation
virtual Space* Sudoku::copy | ( | bool | share | ) | [inline, virtual] |
virtual void Sudoku::print | ( | void | ) | [inline, virtual] |
Friends And Related Function Documentation
int example_size | ( | const char * | s | ) | [related] |
Definition at line 677 of file sudoku.icc.
int value_at | ( | const char * | s, | |
int | n, | |||
int | i, | |||
int | j | |||
) | [related] |
Definition at line 685 of file sudoku.icc.
Member Data Documentation
IntVarArray Sudoku::x [protected] |
The documentation for this class was generated from the following files:
- examples/sudoku.cc (Revision: 3192)
- examples/sudoku.icc (Revision: 2391)