| 945 | } |
| 946 | |
| 947 | auto Moves::TrickToText(const int trick) const -> string { |
| 948 | const MovePlyType &listp0 = moveList[trick][0]; |
| 949 | const MovePlyType &listp1 = moveList[trick][1]; |
| 950 | const MovePlyType &listp2 = moveList[trick][2]; |
| 951 | const MovePlyType &listp3 = moveList[trick][3]; |
| 952 | |
| 953 | stringstream ss; |
| 954 | ss << setw(16) << left << "Last trick" << card_hand[track[trick].lead_hand] |
| 955 | << ": " << card_suit[listp0.move[listp0.current].suit] |
| 956 | << card_rank[listp0.move[listp0.current].rank] << " - " |
| 957 | << card_suit[listp1.move[listp1.current].suit] |
| 958 | << card_rank[listp1.move[listp1.current].rank] << " - " |
| 959 | << card_suit[listp2.move[listp2.current].suit] |
| 960 | << card_rank[listp2.move[listp2.current].rank] << " - " |
| 961 | << card_suit[listp3.move[listp3.current].suit] |
| 962 | << card_rank[listp3.move[listp3.current].rank] << "\n"; |
| 963 | |
| 964 | return ss.str(); |
| 965 | } |
| 966 | |
| 967 | auto Moves::UpdateStatsEntry(moveStatsType &stat, const int findex, |
| 968 | const int hit, const int len) const -> void { |