MCPcopy Create free account
hub / github.com/Gecode/gecode / KnightsCircuit

Method KnightsCircuit

examples/knights.cpp:305–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303class KnightsCircuit : public Knights {
304public:
305 KnightsCircuit(const SizeOptions& opt) : Knights(opt) {
306 // Fix the first move
307 rel(*this, succ[0], IRT_EQ, f(1,2));
308
309 circuit(*this, succ, opt.ipl());
310
311 for (int f = 0; f < n*n; f++)
312 dom(*this, succ[f], neighbors(f));
313 }
314 /// Constructor for cloning \a s
315 KnightsCircuit(KnightsCircuit& s) : Knights(s) {}
316 /// Copy during cloning

Callers

nothing calls this directly

Calls 5

fFunction · 0.85
circuitFunction · 0.85
relFunction · 0.50
domFunction · 0.50
iplMethod · 0.45

Tested by

no test coverage detected