| 239 | } |
| 240 | |
| 241 | std::string PositionComparator::PositionToString(const NodeCards& node) |
| 242 | { |
| 243 | std::ostringstream oss; |
| 244 | oss << "NodeData{ubound:" << static_cast<int>(node.upper_bound) |
| 245 | << ", lbound:" << static_cast<int>(node.lower_bound) |
| 246 | << ", bestMove:" << static_cast<int>(node.best_move_suit) |
| 247 | << "/" << static_cast<int>(node.best_move_rank) |
| 248 | << ", least_win:["; |
| 249 | |
| 250 | for (int suit = 0; suit < DDS_SUITS; suit++) { |
| 251 | if (suit > 0) oss << ","; |
| 252 | oss << static_cast<int>(node.least_win[suit]); |
| 253 | } |
| 254 | oss << "]}"; |
| 255 | |
| 256 | return oss.str(); |
| 257 | } |
| 258 | |
| 259 | std::string PositionComparator::RanksToString(const unsigned short ranks[DDS_SUITS]) |
| 260 | { |
nothing calls this directly
no outgoing calls
no test coverage detected