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

Method y

examples/knights.cpp:185–187  ·  view source on GitHub ↗

Return y coordinate at field \a f

Source from the content-addressed store, hash-verified

183 }
184 /// Return y coordinate at field \a f
185 int y(int f) const {
186 return f / n;
187 }
188 /// Compute set of neighbour fields
189 IntSet neighbors(int i) {
190 static const int moves[8][2] = {

Callers 4

isClippedMethod · 0.45
eventNodeMethod · 0.45
paintEventMethod · 0.45
wheelEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected