MCPcopy Create free account
hub / github.com/dds-bridge/dds / compare_play

Function compare_play

examples/hands.cpp:425–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423
424
425auto compare_play(SolvedPlay * solved, int handno) -> bool
426{
427 if (solved->number != trace_count_[handno])
428 {
429 printf("err %d %d\n", solved->number, trace_count_[handno]);
430 return false;
431 }
432
433 for (int i = 0; i < solved->number; i++)
434 if (solved->tricks[i] != trace_results_[handno][i])
435 {
436 printf("error %d %d %d\n", i, solved->tricks[i],
437 trace_results_[handno][i]);
438 return false;
439 }
440
441 return true;
442}
443
444
445auto print_bin_play(PlayTraceBin * playp, SolvedPlay * solved) -> void

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected