public override bool IsGameFinished(int totalPoints, DartsSerie lastSerie) { var lastThrow = lastSerie.Throws.OrderBy(t => t.Number).LastOrDefault(t => t.GetSum() > 0); return(lastThrow != null && ( (totalPoints + lastSerie.GetSum() == Limit) && (lastThrow.Score.IsDouble))); }
public virtual bool IsGameBusted(int totalPoints, DartsSerie lastSerie) { return(false); }
public override bool IsGameBusted(int totalPoints, DartsSerie lastSerie) { return( !IsGameFinished(totalPoints, lastSerie) && (totalPoints + lastSerie.GetSum() >= Limit - 1)); }