예제 #1
0
        public static bool SimulateRound(List <Card> Hand, List <Card> Table, int otherPlayers)
        {
            var deck = new Deck();

            foreach (var c in Hand)
            {
                deck.Remove(c);
            }
            foreach (var c in Table)
            {
                deck.Remove(c);
            }

            deck.Shuffle();

            var table = new List <Card>(Table);

            if (Table.Count < 5)
            {
                table.AddRange(deck.DealHand(5 - Table.Count));
            }
            var hands = deck.DealHands(otherPlayers, 2);

            return(WinChecker.WinCheck(table, Hand, hands));
        }