ojhPositional64c function hashes

int ojhPositional64c(
  1. Iterable<Card> cards
)

64-bit Positional hash

Implementation

int ojhPositional64c(Iterable<Card> cards) {
  int max = 10;
  int h = 0;

  for (Card c in cards) {
    max -= 1;
    assert(max >= 0);

    h <<= 6;
    h += (0x3F & c.index);
  }
  return h;
}