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

Function PrintDeal

library/src/dump.cpp:91–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90
91std::string PrintDeal(
92 const unsigned short ranks[][DDS_SUITS],
93 const int spacing)
94{
95 std::stringstream ss;
96 for (int s = 0; s < DDS_SUITS; s++)
97 {
98 ss << std::setw(spacing) << "" <<
99 card_suit[s] << " " <<
100 PrintSuit(ranks[0][s]) << "\n";
101 }
102
103 for (int s = 0; s < DDS_SUITS; s++)
104 {
105 ss << card_suit[s] << " " <<
106 std::setw(2*spacing - 2) << std::left << PrintSuit(ranks[3][s]) <<
107 card_suit[s] << " " <<
108 PrintSuit(ranks[1][s]) << "\n";
109 }
110
111 for (int s = 0; s < DDS_SUITS; s++)
112 {
113 ss << std::setw(spacing) << "" <<
114 card_suit[s] << " " <<
115 PrintSuit(ranks[2][s]) << "\n";
116 }
117
118 return ss.str() + "\n";
119}
120
121
122std::string RankToDiagrams(

Callers 2

DumpInputFunction · 0.85
DumpTopLevelFunction · 0.85

Calls 1

PrintSuitFunction · 0.85

Tested by

no test coverage detected