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

Method SameHand

library/src/system/scheduler.cpp:436–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434
435
436bool Scheduler::SameHand(
437 const int hno1,
438 const int hno2) const
439{
440 for (int h = 0; h < DDS_HANDS; h++)
441 for (int s = 0; s < DDS_SUITS; s++)
442 if (hands[hno1].remainCards[h][s] != hands[hno2].remainCards[h][s])
443 return false;
444
445 return true;
446}
447
448
449// These are specific times from a 12-core PC. The hope is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected