public void LoadDummyCards(IDeckDict <RookCardInformation> thisList, RookMainGameClass mainGame) { if (thisList.Count != 12) { throw new BasicBlankException("Must have 12 cards for dummy cards"); } if (mainGame.PlayerList.Count() == 3) { throw new BasicBlankException("There is no dummy hand because there are 3 players already"); } int x = 0; thisList.ForEach(thisCard => { x++; if (x < 7) { thisCard.IsUnknown = false; } else { thisCard.IsUnknown = true; } }); HandList.ReplaceRange(thisList); }
public static int CardToPlay(RookMainGameClass mainGame, RookVMData model) { DeckRegularDict <RookCardInformation> newList; if (mainGame.SaveRoot !.DummyPlay) { newList = model.Dummy1 !.HandList.Where(items => mainGame.IsValidMove(items.Deck)).ToRegularDeckDict(); }