예제 #1
0
파일: Hand.cs 프로젝트: JohnBloom/SpadeBots
        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;
        }
예제 #2
0
 public int Bid(Bid bidInfo)
 {
     //TODO Implement Bidding logic
     return(2);
 }
예제 #3
0
 public int Bid(Bid bidInfo)
 {
     //TODO Implement Bidding logic
     return 2;
 }