nonogram.cpp
Go to the documentation of this file.
72check size(row) == height && size(col) == width "the numbers of rows and columns differ from the board size"
75check sum(row) + count(row) - 1 <= width "the clues of a row do not fit into the width of the board"
76check sum(col) + count(col) - 1 <= height "the clues of a column do not fit into the height of the board"
281 std::cerr << "Error: instance must be a number between 0 and " << n_examples-1 << " or a file" << std::endl;
static void run(const Options &opt, Script *s=nullptr)
Options for scripts with additional instance parameter
Definition driver.hh:834
virtual const char * what(void) const noexcept override
Return the full message.
Definition data.cpp:56
DFA line(int &spos)
Returns next regular expression for line starting from spos.
Definition nonogram.cpp:154
Driver::ScriptBase< Driver::IgnoreStepOption< Space > > Script
Base-class for scripts.
Definition driver.hh:1002
void branch(Home home, const FloatVarArgs &x, FloatVarBranch vars, FloatValBranch vals, FloatBranchFilter bf=nullptr, FloatVarValPrint vvp=nullptr)
Branch over x with variable selection vars and value selection vals.
Definition branch.cpp:39
void extensional(Home home, const IntVarArgs &x, DFA d, IntPropLevel ipl=IPL_DEF)
Post domain consistent propagator for extensional constraint described by a DFA.
Definition extensional-regular.cpp:39
Gecode toplevel namespace
SharedArray< int > IntSharedArray
Arrays of integers that can be shared among several element constraints.
Definition int.hh:1813
BoolVarBranch BOOL_VAR_AFC_MAX(double d=1.0, BranchTbl tbl=nullptr)
Select variable with largest accumulated failure count with decay factor d.
Definition var.hpp:404
