Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Poker(int numType, int suitType)
 {
     NumType  = numType;
     SuitType = suitType;
     Number   = PokerUtil.CalculateNumber(numType, suitType, 1);
 }
Ejemplo n.º 3
0
 public Poker(int number)
 {
     Number   = number;
     NumType  = PokerUtil.NumTypeOf(number);
     SuitType = PokerUtil.SuitTypeOf(number);
 }