//Creates a shuffler object and shuffles the list of Chance Cards. //The shuffle list is than stored in a stack for use when drawing the cards. public static void LoadCards() { shuffler = new Shuffler <ChanceCards>(ChanceCards.LoadChanceFromFile()); List <ChanceCards> cardsToStack = shuffler.GetNewShuffle(); foreach (ChanceCards card in cardsToStack) { chanceCards.Push(card); } }
//Creates a shuffler object and shuffles the list of Community Chest Cards. //The shuffle list is than stored in a stack for use when drawing the cards. public static void LoadCards() { shuffler = new Shuffler <CommunuityChestCards>(CommunuityChestCards.LoadCommunityChestCardFromFile()); List <CommunuityChestCards> cardsToStack = shuffler.GetNewShuffle(); foreach (CommunuityChestCards card in cardsToStack) { chestCards.Push(card); } }