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

Method GenerateEndGamePosition

library/tests/trans_table/mock_data_generators.cpp:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void MockPositionGenerator::GenerateEndGamePosition(
167 int& trick, int& hand,
168 unsigned short aggrTarget[DDS_SUITS],
169 int hand_dist[DDS_HANDS]) {
170
171 trick = std::uniform_int_distribution<int>(10, 13)(generator_);
172 hand = hand_dist_(generator_);
173
174 GenerateComplexAggrTarget(aggrTarget);
175
176 for (int h = 0; h < DDS_HANDS; h++) {
177 hand_dist[h] = 13 - trick + 1;
178 }
179}
180
181void MockPositionGenerator::GenerateAggrTarget(unsigned short aggrTarget[DDS_SUITS], int complexity)
182{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected