public Bataille() { YACE.YACEParameters parameters = new YACEParameters(); CardDefinition battailDefinition = new CardDefinition() { Name = "BatailleCard", }; parameters.ResourceDefinitions = new ResourceDefinition[] { new ResourceDefinition { Name = "Multiplier", BaseValue = 1, IsPlayerBound = true, MinValue = 1, }, new ResourceDefinition { Name = "Score", BaseValue = 0, IsPlayerBound = true, } }; parameters.ZoneDefinitions = new ZoneDefinition[] { new ZoneDefinition { Name = "MainDeck", IsPlayerBound = false, IsOrdered = false, }, new ZoneDefinition { Name = "PlayerHand", IsPlayerBound = true, IsOrdered = false, }, new ZoneDefinition { Name = "DiscardPile", }, }; yace = new YACE.YACE(parameters); CardInstance lastCard = null; for (int i = 0; i < 10; ++i) { CardInstance card = new CardInstance(battailDefinition); card.AddTag("Value", i + 1); yace.SetCardToZone(card, "MainDeck"); lastCard = card; } yace.ShuffleZone("MainDeck"); }