private void Controler_KtośWysłałKarte(object sender, Tuple <Urzytkownik, Karta> e) { if (InGame == null) { InGame = new ConclusionAboutGame(AmountPlaeyr, controler.IndexPlayer(Name), controler.TwojeKarty); InGame.Active(false); } //ConclusionAboutBehavior(controler.Stół, controler.AktywnaKozera, controler.Kozera); if (e.Item1.Nazwa != Name) { InGame.CalculateConclusion(controler.IndexPlayer(e.Item1.Nazwa), controler.Stół, controler.AktywnaKozera, controler.Kozera); } }
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); } } }