public void Best_Empty_AreEqual() { var pairs = CardPairs.Create(Cards.Empty); var act = pairs.Best; var exp = 0; Assert.AreEqual(exp, act); }
public void Best_56KQ_AreEqual() { var cards = Cards.Parse("[5c,6c,Kh,Qc]"); var pairs = CardPairs.Create(cards); var act = pairs.Best; var exp = 13; Assert.AreEqual(exp, act); }
public void Second_56KK_AreEqual() { var cards = Cards.Parse("[5c,6c,Kh,Kc]"); var pairs = CardPairs.Create(cards); var act = pairs.Second; var exp = 13; Assert.AreEqual(exp, act); }
public GameAction Action(GameState state) { var pairs = CardPairs.Create(state.Own.Hand); // We have to (Small Blind), and a creapy hand. if (state.AmountToCall != 0 && state.Table.Count == 0) { if (pairs.Max < 2 && state.Own.Hand.Best.Height < 11) { return(GameAction.Fold); } return(GameAction.Call); } // If we need to call, we call. if (state.AmountToCall != 0) { return(GameAction.Call); } // we check. return(GameAction.Check); }