| 921 | } |
| 922 | |
| 923 | auto Moves::PrintMove(const MovePlyType &ourMply) const -> string { |
| 924 | stringstream ss; |
| 925 | |
| 926 | ss << "current " << ourMply.current << ", last " << ourMply.last << "\n"; |
| 927 | ss << " i suit sequence rank wgt\n"; |
| 928 | for (int i = 0; i <= ourMply.last; i++) { |
| 929 | ss << setw(2) << right << i << setw(3) << card_suit[ourMply.move[i].suit] |
| 930 | << setw(9) << hex << ourMply.move[i].sequence << setw(3) |
| 931 | << card_rank[ourMply.move[i].rank] << setw(3) << ourMply.move[i].weight |
| 932 | << "\n"; |
| 933 | } |
| 934 | return ss.str(); |
| 935 | } |
| 936 | |
| 937 | auto Moves::PrintMoves(const int trick, const int relHand) const -> string { |
| 938 | const MovePlyType &list = moveList[trick][relHand]; |