Example #1
0
        static void CheckFiveCard()
        {
            //Deckをつくってまぜる
            var myDeck = new Deck();

            myDeck.Shuffle();
            var player = new Player();

            const int DRAWNUM = 5;

            for (int i = 0; i < DRAWNUM; i++)
            {
                player.Cards.Add(myDeck.Draw());
                DrawMessageLight(player.Cards.Last(), player.Cards.Count);
            }
            DrawLine();

            //Pair判定と出力
            HasPairMessage(player.IsHasOnePair());

            //twoPair判定と出力
            HasTwoPairMessage(player.IsHasDoublePair());

            //threeOfAKind判定と出力
            HasThreeCardMessage(player.IsHasTrio());
        }