Example #1
0
        public Table newFourWayTieTable()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(14, 13, 12, 3, 2);
            Hand          hand2      = newHand(14, 13, 12, 3, 2);
            Hand          hand3      = newHand(14, 13, 12, 3, 2);
            Hand          hand4      = newHand(14, 13, 12, 3, 2);
            Hand          hand5      = newHand(11, 10, 8, 7, 5);
            Hand          hand6      = newHand(11, 10, 8, 7, 5);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);
            Player        player4    = new Player("player4", hand4);
            Player        player5    = new Player("player5", hand5);
            Player        player6    = new Player("player6", hand6);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            playerList.Add(player4);
            playerList.Add(player5);
            playerList.Add(player6);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #2
0
        public Table newMultipleHandTable()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newStraightFlushHand(1, 1);
            Hand          hand2      = newHand(2, 2, 2, 2, 3);
            Hand          hand3      = newHand(14, 14, 14, 4, 4);
            Hand          hand4      = newFlushHand(0, 2);
            Hand          hand5      = newHand(6, 7, 8, 9, 10);
            Hand          hand6      = newHand(13, 13, 13, 12, 11);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);
            Player        player4    = new Player("player4", hand4);
            Player        player5    = new Player("player5", hand5);
            Player        player6    = new Player("player6", hand6);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            playerList.Add(player4);
            playerList.Add(player5);
            playerList.Add(player6);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #3
0
        public Table newSingleFourOfAKindTable()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newFourOfAKindHand(2);
            Player        player1    = new Player("player1", hand1);

            playerList.Add(player1);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #4
0
        public Table newStraightFlushTableWinner()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newStraightFlushHand(0, 1);
            Hand          hand2      = newStraightFlushHand(1, 2);
            Hand          hand3      = newStraightFlushHand(2, 3);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #5
0
        public Table newHighCardTableWinnerTie()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(2, 3, 4, 5, 6);
            Hand          hand2      = newHand(2, 3, 4, 5, 6);
            Hand          hand3      = newHand(2, 3, 4, 5, 6);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #6
0
        public Table newHighCardTableWinner()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(14, 6, 5, 4, 3);
            Hand          hand2      = newHand(14, 7, 6, 3, 2);
            Hand          hand3      = newHand(12, 10, 9, 8, 4);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #7
0
        public Table newOnePairTableWinnerTie()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(14, 14, 5, 4, 3);
            Hand          hand2      = newHand(5, 4, 3, 14, 14);
            Hand          hand3      = newHand(13, 13, 12, 10, 8);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #8
0
        public Table newTwoPairTableTie()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newTwoPairHand(4, 5, 10);
            Hand          hand2      = newTwoPairHand(4, 5, 10);
            Hand          hand3      = newTwoPairHand(2, 3, 5);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #9
0
        public Table newThreeOfAKindTableWinner()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(2, 2, 2, 3, 4);
            Hand          hand2      = newHand(5, 5, 5, 4, 3);
            Hand          hand3      = newHand(14, 14, 14, 8, 5);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #10
0
        public Table newStraightTableTie()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newStraightHand(0);
            Hand          hand2      = newStraightHand(0);
            Hand          hand3      = newStraightHand(0);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #11
0
        public Table newFullHouseTableWinner()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(2, 2, 2, 3, 3);
            Hand          hand2      = newHand(14, 14, 12, 12, 12);
            Hand          hand3      = newHand(11, 11, 11, 14, 14);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }
Example #12
0
        public Table newSingleWinnerTable()
        {
            List <Player> playerList = new List <Player>();
            Hand          hand1      = newHand(2, 4, 6, 8, 10);
            Hand          hand2      = newHand(4, 6, 8, 10, 12);
            Hand          hand3      = newHand(3, 3, 5, 7, 9);
            Hand          hand4      = newHand(6, 8, 10, 12, 14);
            Hand          hand5      = newHand(5, 7, 7, 9, 11);
            Player        player1    = new Player("player1", hand1);
            Player        player2    = new Player("player2", hand2);
            Player        player3    = new Player("player3", hand3);
            Player        player4    = new Player("player4", hand4);
            Player        player5    = new Player("player5", hand5);

            playerList.Add(player1);
            playerList.Add(player2);
            playerList.Add(player3);
            playerList.Add(player4);
            playerList.Add(player5);
            Table newTable = new CardGame.Table(playerList);

            return(newTable);
        }