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

Function DumpTopLevel

library/src/dump.cpp:320–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320void DumpTopLevel(
321 std::ofstream& fout,
322 const std::shared_ptr<ThreadData>& thrp,
323 const int tricks,
324 const int lower,
325 const int upper,
326 const int printMode)
327{
328 const Pos& tpos = thrp->lookAheadPos;
329 SolverContext ctx{ thrp };
330
331 fout << DumpTopHeader(thrp, tricks, lower, upper, printMode) << "\n";
332 fout << PrintDeal(tpos.rank_in_suit, 16);
333 fout << WinnersToText(tpos.win_ranks[ctx.search().ini_depth()]) << "\n";
334 fout << ctx.search().nodes() << " AB nodes, " <<
335 ctx.search().trick_nodes() << " trick nodes\n\n";
336}
337

Callers 3

solve_board_internalFunction · 0.85
solve_same_boardFunction · 0.85
analyse_later_boardFunction · 0.85

Calls 7

DumpTopHeaderFunction · 0.85
PrintDealFunction · 0.85
WinnersToTextFunction · 0.85
ini_depthMethod · 0.80
searchMethod · 0.80
nodesMethod · 0.80
trick_nodesMethod · 0.80

Tested by

no test coverage detected