예제 #1
0
        private static Bid CalculateBid(int bidIdFromRule, string description, int position, Phase phase)
        {
            if (bidIdFromRule == 0)
            {
                return(Bid.PassBid);
            }

            var currentBid = Bid.GetBid(bidIdFromRule);

            currentBid.description = description;

            if (bidIdFromRule != 0)
            {
                (currentBid.minRecords, currentBid.maxRecords) = BidGenerator.GetRecords(currentBid, phase, position);
            }

            return(currentBid);
        }
예제 #2
0
 public string GetInformation(Bid bid, int position)
 {
     var(minRecords, maxRecords) = BidGenerator.GetRecords(bid, GetCurrentPhase(position), position);
     return(Util.GetInformation(minRecords, maxRecords));
 }