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

Function NodeToText

library/src/dump.cpp:169–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169std::string NodeToText(const NodeCards& node)
170{
171 std::stringstream ss;
172 ss << std::setw(16) << std::left << "Address" <<
173 static_cast<void const *>(&node) << "\n";
174
175 ss << std::setw(16) << std::left << "Bounds" <<
176 static_cast<int>(node.lower_bound) << " to " <<
177 static_cast<int>(node.upper_bound) << " tricks\n";
178
179 ss << std::setw(16) << std::left << "Best move" <<
180 card_suit[ static_cast<int>(node.best_move_suit) ] <<
181 card_rank[ static_cast<int>(node.best_move_rank) ] << "\n";
182
183 return ss.str();
184}
185
186
187std::string FullNodeToText(const NodeCards& node)

Callers 1

FullNodeToTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected