public void CheckHuTest()
        {
            CsGamePlayer csGamePlayer = new CsGamePlayer(new Entity.GameUser());

            csGamePlayer.InitCard(new int[] { 0x00 });
            Boolean result = csGamePlayer.CheckHu(0x01);

            Assert.AreEqual(result, true);
        }
Пример #2
0
        public void CheckQingYiSeTest()
        {
            CsGamePlayer player = new CsGamePlayer(null);

            player.InitCard(new int[] {
                3 | 0x10, 3 | 0x10, 2 | 0x10, 3 | 0x10
            });

            Boolean result = player.CheckHu(1 | 0x10);

            Assert.AreEqual(result, true);
        }
Пример #3
0
        public void CheckHuTest()
        {
            CsGamePlayer player = new CsGamePlayer(null);

            player.InitCard(new int[] {
                //初始化万,0x10 表示1张
                3 | 0x10, 4 | 0x10, 5 | 0x10,
                //初始化筒,0x10表示1张,0x80表示筒
                7 | 0x10 | 0x80, 7 | 0x10 | 0x80, 7 | 0x10 | 0x80,
                //初始化条,0x10表示1张,0x100表示条
                1 | 0x10 | 0x100, 2 | 0x10 | 0x100, 3 | 0x10 | 0x100, 4 | 0x10 | 0x100, 4 | 0x10 | 0x100, 7 | 0x10 | 0x100, 8 | 0x10 | 0x100
            });
            Boolean result = player.CheckHu(6 | 0x10 | 0x100);

            Assert.AreEqual(result, true);
        }