public void GetWorstCard() { IQ1000Game iq = new IQ1000Game(3, 0.5f); ConclusionAboutGame cm = new ConclusionAboutGame(3, 1, Date.simpleCards8); cm.MoveContext = MoveContext1000.ChoseCards; List <Karta> z = iq.GetWorstCard(new List <Karta>() { ObsugaKart.StwórzKarte(Karta.As, Karta.kier), ObsugaKart.StwórzKarte(Karta.K10, Karta.kier) }, 2); }
private async void Controler_OdbierzMusek(object sender, GraKarciana.Karta[] e) { IQ1000Game iq = GetIq(); InGame = new ConclusionAboutGame(AmountPlaeyr, controler.IndexPlayer(Name), controler.TwojeKarty); InGame.Active(true); List <Karta> SnedCard = iq.GetWorstCard(controler.TwojeKarty, AmountPlaeyr); await controler.WysyłanieMuskuAsync(SnedCard); int j = 0; for (int i = 0; i < AmountPlaeyr; i++) { if (i != controler.IndexPlayer(Name)) { InGame.TransferedCard(SnedCard[j++], i); } } }