// constructor private PokerGame(string player1Name, string player2Name) { _deck = new Deck(); _handRankings = new Dictionary<int, string> { {10, "Royal Flush"}, {9, "Straight Flush"}, {8, "Four-of-a-Kind"}, {7, "Full House"}, {6, "Flush"}, {5, "Straight"}, {4, "Three-of-a-Kind"}, {3, "Two Pair"}, {2, "Pair"}, {1, "Nothing!"} }; You = new Player(player1Name); Them = new Player(player2Name); }
// constructor private BlackjackGame(string player1Name, string player2Name) { _deck = new Deck(); You = new Player(player1Name); Them = new Player(player2Name); }