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

Function cut

contribs/quacode/examples/connect-four.cpp:138–142  ·  view source on GitHub ↗

Adding cut

Source from the content-addressed store, hash-verified

136
137/// Adding cut
138static void cut(Space& home, const BoolExpr& expr) {
139 BoolVar o(home,0,1);
140 rel(home, o == expr);
141 when(home, o, &gf_success, &gf_dummy);
142}
143
144template <int N>
145struct c4Heuristic {

Callers 1

ConnectFourAllStateMethod · 0.70

Calls 2

whenFunction · 0.85
relFunction · 0.50

Tested by

no test coverage detected