public override int MakeBid(RoundContext roundContext) { CardValue trumpCutoff; CardValue nonTrumpCutoff; if (roundContext.RoundNum < 2) { trumpCutoff = CardValue.TWO; nonTrumpCutoff = CardValue.THREE; } else if (roundContext.RoundNum < 5) { trumpCutoff = CardValue.THREE; nonTrumpCutoff = CardValue.SIX; } else { trumpCutoff = CardValue.FIVE; nonTrumpCutoff = CardValue.TEN; } int bid = 0; foreach (var card in _hand) { if (card.Value == CardValue.WIZARD) { bid++; } else if (card.Suite == roundContext.TrumpSuite && card.Value >= trumpCutoff) { bid++; } else if (card.Suite != roundContext.TrumpSuite && card.Value >= nonTrumpCutoff) { bid++; } } _curBid = bid; _frontend.DisplayPlayerBid(bid, this); return(bid); }
public override int MakeBid(RoundContext roundContext) { return(_frontend.PromptPlayerBid(this)); }
public abstract int MakeBid(RoundContext roundContext);