Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public Move CreateNewBuild(List <byte> cardsInNewBuild)
 {
     if ((cardsInNewBuild != null) && (!cardsInNewBuild.Any()))
     {
         NewBuildCards = cardsInNewBuild;
     }
     else
     {
         throw new Exception(Errorstr.EmptyBuild());
     }
     return(this);
 }