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

Method TrickToText

library/src/moves/moves.cpp:947–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

945}
946
947auto 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
967auto Moves::UpdateStatsEntry(moveStatsType &stat, const int findex,
968 const int hit, const int len) const -> void {

Callers 1

trick_to_textMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected