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

Function main

examples/crowded-chess.cpp:400–420  ·  view source on GitHub ↗

\brief Main function * \relates CrowdedChess */

Source from the content-addressed store, hash-verified

398 * \relates CrowdedChess
399 */
400int
401main(int argc, char* argv[]) {
402 SizeOptions opt("CrowdedChess");
403 opt.propagation(CrowdedChess::PROP_TUPLE_SET);
404 opt.propagation(CrowdedChess::PROP_TUPLE_SET,
405 "extensional",
406 "Use extensional propagation for bishops-placement");
407 opt.propagation(CrowdedChess::PROP_DECOMPOSE,
408 "decompose",
409 "Use decomposed propagation for bishops-placement");
410 opt.ipl(IPL_DOM);
411 opt.size(8);
412 opt.parse(argc,argv);
413 if (opt.size() < 5) {
414 std::cerr << "Error: size must be at least 5" << std::endl;
415 return 1;
416 }
417 init_bishops(opt.size());
418 Script::run<CrowdedChess,DFS,SizeOptions>(opt);
419 return 0;
420}
421
422// STATISTICS: example-any
423

Callers

nothing calls this directly

Calls 5

init_bishopsFunction · 0.85
propagationMethod · 0.80
iplMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected