public List <Bid> AllOpponentRaises() { PlayerPosition partnerPosition = GetOppositePlayerPosition(UserPosition); return(BiddingHistory .Where(e => e.IsRaise) .Where(e => e.PlayerPosition != UserPosition && e.PlayerPosition != partnerPosition) .ToList()); }
public void AddBid(Bid bid) { CurrentBiddingPlayer.MakeBid(bid); BiddingHistory.Add(bid); if (bid.IsRaise) { SetNewBiddingMode(); } }
public Bid LastBidBeforePartnerBid() { int partnerBidIndex = BiddingHistory.IndexOf(LastPartnerBid); return(BiddingHistory.Take(partnerBidIndex).Last()); }
public Bid LastOpponentBid() { PlayerPosition partnerPosition = GetOppositePlayerPosition(UserPosition); return(BiddingHistory.LastOrDefault(e => e.PlayerPosition != UserPosition && e.PlayerPosition != partnerPosition)); }