public static void PlayTestSamples() { SamplePockerGame testSampleGame = new SamplePockerGame(); SamplePokerPlayer Joe = testSampleGame.AddPlayer(new SamplePokerPlayer("Joe", testSampleGame)); SamplePokerPlayer Gen = testSampleGame.AddPlayer(new SamplePokerPlayer("Jen", testSampleGame)); SamplePokerPlayer Bob = testSampleGame.AddPlayer(new SamplePokerPlayer("Bob", testSampleGame)); PopulateSamplePlayers.PopulatePlayers1(Joe, Gen, Bob); var winners = testSampleGame.Winners; winners.PrintResult("Sample test 1", "Press any key to play sample 2"); Console.WriteLine(""); PopulateSamplePlayers.PopulatePlayers2(Joe, Gen, Bob); winners = testSampleGame.Winners; winners.PrintResult("Sample test 2", ""); }
public static void PopulatePlayers2(SamplePokerPlayer joe, SamplePokerPlayer jen, SamplePokerPlayer bob) { joe.ReturnCards(); jen.ReturnCards(); bob.ReturnCards(); joe.PlayingCardsOnHand = new PockerLib.BaseModels.QList <PlayingCard>() { new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Three, CardSuit = PockerLib.Enums.CardSuitEnum.Heart }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Four, CardSuit = PockerLib.Enums.CardSuitEnum.Diamond }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Nine, CardSuit = PockerLib.Enums.CardSuitEnum.Clubs }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Nine, CardSuit = PockerLib.Enums.CardSuitEnum.Diamond }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Queen, CardSuit = PockerLib.Enums.CardSuitEnum.Heart }, }; jen.PlayingCardsOnHand = new PockerLib.BaseModels.QList <PlayingCard>() { new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Five, CardSuit = PockerLib.Enums.CardSuitEnum.Clubs }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Seven, CardSuit = PockerLib.Enums.CardSuitEnum.Diamond }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Nine, CardSuit = PockerLib.Enums.CardSuitEnum.Heart }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Nine, CardSuit = PockerLib.Enums.CardSuitEnum.Spades }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Queen, CardSuit = PockerLib.Enums.CardSuitEnum.Spades }, }; bob.PlayingCardsOnHand = new PockerLib.BaseModels.QList <PlayingCard>() { new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Two, CardSuit = PockerLib.Enums.CardSuitEnum.Heart }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Two, CardSuit = PockerLib.Enums.CardSuitEnum.Clubs }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Five, CardSuit = PockerLib.Enums.CardSuitEnum.Spades }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Ten, CardSuit = PockerLib.Enums.CardSuitEnum.Clubs }, new PlayingCard() { CardRank = PockerLib.Enums.CardRankEnum.Ace, CardSuit = PockerLib.Enums.CardSuitEnum.Heart }, }; }