Esempio n. 1
0
        public List <Bid> AllOpponentRaises()
        {
            PlayerPosition partnerPosition = GetOppositePlayerPosition(UserPosition);

            return(BiddingHistory
                   .Where(e => e.IsRaise)
                   .Where(e => e.PlayerPosition != UserPosition && e.PlayerPosition != partnerPosition)
                   .ToList());
        }
Esempio n. 2
0
        public void AddBid(Bid bid)
        {
            CurrentBiddingPlayer.MakeBid(bid);

            BiddingHistory.Add(bid);

            if (bid.IsRaise)
            {
                SetNewBiddingMode();
            }
        }
Esempio n. 3
0
        public Bid LastBidBeforePartnerBid()
        {
            int partnerBidIndex = BiddingHistory.IndexOf(LastPartnerBid);

            return(BiddingHistory.Take(partnerBidIndex).Last());
        }
Esempio n. 4
0
        public Bid LastOpponentBid()
        {
            PlayerPosition partnerPosition = GetOppositePlayerPosition(UserPosition);

            return(BiddingHistory.LastOrDefault(e => e.PlayerPosition != UserPosition && e.PlayerPosition != partnerPosition));
        }