readonly bool N暗刻(int n) { var setCount = Sets.Count(_ => _.刻子) + Melds.Count(_ => _.暗槓); if (自摸) { return(setCount == n); } if (Pairs.Contains(newTileInHand)) { // 単騎待ち return(setCount == n); } else { // シャボ return(setCount == n + 1); } }
public void Evaluate() { var count = AnswerPairs.Count(p => Pairs.Contains(p)); gainedScore = Score / count; }