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

Function FullNodeToText

library/src/dump.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185
186
187std::string FullNodeToText(const NodeCards& node)
188
189{
190 std::stringstream ss;
191 std::vector<int> v(DDS_SUITS);
192 for (unsigned i = 0; i < DDS_SUITS; i++)
193 v[i] = 15 - static_cast<int>(node.least_win[i]);
194
195 ss << std::setw(16) << std::left << "Lowest used" <<
196 card_suit[0] << card_rank[v[0]] << ", " <<
197 card_suit[1] << card_rank[v[1]] << ", " <<
198 card_suit[2] << card_rank[v[2]] << ", " <<
199 card_suit[3] << card_rank[v[3]] << "\n";
200
201 return NodeToText(node) + ss.str();
202}
203
204
205std::string PosToText(

Callers

nothing calls this directly

Calls 1

NodeToTextFunction · 0.85

Tested by

no test coverage detected