bestOf method

V bestOf(
  1. HandInterface h
)

Implementation

V bestOf(HandInterface h) {
  V best = valueFactory();

  for (HandInterface sub in h.combinations(5)) {
    V subV = lookupEvaluator(sub);
    if (subV.value < best.value) {
      best = subV;
    }
  }
  return best;
}