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

Method PositionToString

library/tests/trans_table/test_utilities.cpp:241–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::string PositionComparator::PositionToString(const NodeCards& node)
242{
243 std::ostringstream oss;
244 oss << "NodeData{ubound:" << static_cast<int>(node.upper_bound)
245 << ", lbound:" << static_cast<int>(node.lower_bound)
246 << ", bestMove:" << static_cast<int>(node.best_move_suit)
247 << "/" << static_cast<int>(node.best_move_rank)
248 << ", least_win:[";
249
250 for (int suit = 0; suit < DDS_SUITS; suit++) {
251 if (suit > 0) oss << ",";
252 oss << static_cast<int>(node.least_win[suit]);
253 }
254 oss << "]}";
255
256 return oss.str();
257}
258
259std::string PositionComparator::RanksToString(const unsigned short ranks[DDS_SUITS])
260{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected