public Move AddCardsToExistingBuild(Build buildName, List <byte> cardsToAdd) { if ((cardsToAdd != null) && (!cardsToAdd.Any())) { CardsAddedToExistingBuild = new Tuple <Build, List <byte> >(buildName, cardsToAdd); } else { throw new Exception(Errorstr.EmptyBuild()); } return(this); }
public Move CreateNewBuild(List <byte> cardsInNewBuild) { if ((cardsInNewBuild != null) && (!cardsInNewBuild.Any())) { NewBuildCards = cardsInNewBuild; } else { throw new Exception(Errorstr.EmptyBuild()); } return(this); }