예제 #1
0
 private void ASixthLittle_Field_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if ((BSixthLittle_Field.Background = PlayAlgorithms.Steps(_BufferCards, _Buff_FLOAT_Card, _TrumpCard, PlayersCards[1][3])) != null)
     {
         Beat();
     }
 }
예제 #2
0
        public MainWindow(byte QtyPL)
        {
            QuantityPlayers = QtyPL;
            InitializeComponent();
            InitializePlayers();

            Logic_sAlgorithms.Variable.Add(1);
            MessageBox.Show(Logic_sAlgorithms.Variable.Count.ToString());
            Logic_sAlgorithms.Variable.Add(1);
            MessageBox.Show(Logic_sAlgorithms.Variable.Count.ToString());



            //MessageBox.Show((BigField.Children[5]).ToString());
            //        ((Label)BigField.Children[5]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/1.1.png")));
            //      ((Label)BigField.Children[6]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/2.1.png")));
            //((Label)BigField.Children[7]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/1.3.png")));
            //((Label)BigField.Children[8]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/2.2.png")));
            //((Label)BigField.Children[5]).BorderBrush = Brushes.DarkViolet;
            //((Label)BigField.Children[5]).BorderThickness = new Thickness(5);
            //((Label)BigField.Children[6]).BorderBrush = Brushes.DarkViolet;
            //((Label)BigField.Children[6]).BorderThickness = new Thickness(5);
            //((Label)BigField.Children[7]).BorderBrush = Brushes.DarkViolet;
            //((Label)BigField.Children[7]).BorderThickness = new Thickness(5);

            Logic_sAlgorithms.MixCards(ref BigCardsArray);
            Logic_sAlgorithms.LayingCardsINDeck(ref BigCardsArray, ref CardsStore);
            PlayAlgorithms.ShareOutCards(ref PlayersCards, ref CardsStore);

            ((Label)BigField.Children[5]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/" + PlayersCards[1][3] + ".png")));
            ((Label)BigField.Children[7]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/" + PlayersCards[1][4] + ".png")));
            ((Label)BigField.Children[9]).Background = new ImageBrush(new BitmapImage(new Uri("pack://application:,,,/Kursach;component/CardsImage/" + PlayersCards[1][5] + ".png")));

            _TrumpCard = PlayAlgorithms.TrumpCARD(ref LearImg, ref BigCardsArray);
            int FirstPlayer = 0; // PlayAlgorithms.CheckPlayerStep(ref PlayersCards, ref _TrumpCard);

            if (FirstPlayer == 0)
            {
                L_Pl_Field.IsEnabled = true;
            }
            MessageBox.Show(FirstPlayer.ToString());
            Logic_sAlgorithms.LookCards(ref PlayersCards[0], ref PlayerCardsImage);
        }