public void TestSelectSuperABCDE() { _currentHost = PokerNumType.PA; _value = new PatternValue(GetCurrentHost); _matcher = new PatternMatcher(_value); _pokerAI = new PokerAI(_matcher, _value); _pokerAI.SetMyPokers(PokerUtil.ParsePokerList("SQ, SQ, CQ, D2, HA")); var lastChuPai = _matcher.Match(PokerUtil.ParsePokerList("D7, HA, D9, D0, DJ")); var selected = _pokerAI.SelectBiggerXXXXOrSuperABCDE(lastChuPai, 0, true); Assert.AreEqual(PokerPattern.NULL, selected); }
public Poker(int numType, int suitType) { NumType = numType; SuitType = suitType; Number = PokerUtil.CalculateNumber(numType, suitType, 1); }
public Poker(int number) { Number = number; NumType = PokerUtil.NumTypeOf(number); SuitType = PokerUtil.SuitTypeOf(number); }