تبلیغات
int s, b;
            s = Convert.ToInt16(textBox1.Text);
            b = Convert.ToInt16(textBox2.Text);
            int i, j, k, l, n, m, f,v,w,r;
            i = k = n = v=w=s;
            j= l = m = f =r=b;
                for (j = 0; j < 8; j++)
                {
                    a[s, j] = '$';
                    a[j, b] = '$';
                }
                while (k >= 0 && l >= 0)
                {
                    a[k, l] = '$';
                    k--; l--;
                }
                while (n >= 0 && m<8)
                {
                    a[n, m] = '$';
                    n--; m++;
                }
                while (v<8&& f< 8)
                {
                    a[v, f] = '$';
                    v++; f++;
                }
                while (w<8 && r >=0)
                {
                    a[w, r] = '$';
                    w++ ; r--;
                }
                a[s, b] = 'Q';
                for (i = 0; i < 8; i++)
                {
                    for(j=0;j<8;j++)
                    {
                        label3.Text += a[i, j].ToString() + "  ";
                    }
                    label3.Text += "\n";
                }