public void NewCards() // to display new cards in hand { noOfPlayers = 2; if (noOfPlayers > 5) { noOfDecks = 3; } else { noOfDecks = 2; } deck = new MainDeck(); gameHand = new RummyHand(deck); gameHand.pullCards(); gameHand.AssignHands(); showCards(); gameHand.AssignClosedDeck(); WrittingIntoTextFile(); }
// Use this for initialization void Start() { noOfPlayers = 2; if (noOfPlayers > 5) { noOfDecks = 3; } else { noOfDecks = 2; } deck = new MainDeck(); gameHand = new RummyHand(deck); gameHand.pullCards(); gameHand.AssignHands(); showCards(); gameHand.AssignClosedDeck(); WrittingIntoTextFile(); }