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

Function compare_future_tricks

examples/hands.cpp:308–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308auto compare_future_tricks(FutureTricks * fut, int handno, int solutions) -> bool
309{
310 if (solutions == 2)
311 {
312 if (fut->cards != cards_solutions2_[handno])
313 return false;
314 }
315 else if (fut->cards != cards_solutions3_[handno])
316 return false;
317
318 for (int i = 0; i < fut->cards; i++)
319 {
320 if (fut->suit [i] != card_suits_ [handno][i]) return false;
321 if (fut->rank [i] != card_ranks_ [handno][i]) return false;
322 if (fut->equals[i] != card_equals_[handno][i]) return false;
323 if (fut->score [i] != card_scores_[handno][i]) return false;
324 }
325 return true;
326}
327
328
329auto set_table(DdTableResults * table, int handno) -> void

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected