public void GetBids() { var info = new Bid(); foreach (var playerMeta in Players) { var bid = playerMeta.Player.Bid(info); //No negative bids and no bids over 13 bid = Math.Max(0, bid); bid = Math.Min(13, bid); if (playerMeta.Order == 1) info.PlayerOneBid = bid; if (playerMeta.Order == 2) info.PlayerTwoBid = bid; if (playerMeta.Order == 3) info.PlayerThreeBid = bid; if (playerMeta.Order == 4) info.PlayerFourBid = bid; } Bid = info; }
public int Bid(Bid bidInfo) { //TODO Implement Bidding logic return(2); }
public int Bid(Bid bidInfo) { //TODO Implement Bidding logic return 2; }