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

Function PrintSuit

library/src/dump.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56std::string PrintSuit(const unsigned short suitCode)
57{
58 if (! suitCode)
59 return "--";
60
61 std::string st;
62 for (int r = 14; r >= 2; r--)
63 if ((suitCode & bit_map_rank[r]))
64 st += static_cast<char>(card_rank[r]);
65 return st;
66}
67
68
69std::string PrintSuit(

Callers 3

PrintDealFunction · 0.85
RankToDiagramsFunction · 0.85
WinnersToTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected