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

Method PrintMove

library/src/moves/moves.cpp:923–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923auto 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
937auto Moves::PrintMoves(const int trick, const int relHand) const -> string {
938 const MovePlyType &list = moveList[trick][relHand];

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64