| 84 | } |
| 85 | |
| 86 | bool MockHandGenerator::IsValidDistribution(const int hand_dist[DDS_HANDS]) const { |
| 87 | int total = 0; |
| 88 | for (int hand = 0; hand < DDS_HANDS; hand++) { |
| 89 | if (hand_dist[hand] < 0 || hand_dist[hand] > 13) { |
| 90 | return false; |
| 91 | } |
| 92 | total += hand_dist[hand]; |
| 93 | } |
| 94 | return total <= 52; |
| 95 | } |
| 96 | |
| 97 | void MockHandGenerator::PrintDistribution(const int hand_dist[DDS_HANDS]) const { |
| 98 | std::cout << "Hand distribution: ["; |
nothing calls this directly
no outgoing calls
no test coverage detected