Example #1
0
 public state(slot[] ss)
 {
     s = new slot[8];
     for (int i = 0; i < 8; i++)
         s[i] = new slot();
     for (int i = 0; i < ss.Length; i++)
         s[i] = ss[i];
 }
Example #2
0
        public state()
        {
            s = new slot[8];
            for (int i = 0; i < 8; i++)
                s[i] = new slot();

            dom = new int[8,8];
            for (int i = 0; i < 8; i++)
                for (int i2 = 0; i2 < 8; i2++)
                    dom[i, i2] = 1;
        }
Example #3
0
 public bool isdiag(slot a, slot b)
 {
     if (Math.Abs(a.c - b.c) == Math.Abs(a.l - b.l))
     {
         return(true);
     }
     if ((a.c + a.l) == (b.c + b.l))
     {
         return(true);
     }
     return(false);
 }
Example #4
0
 public state(slot[] ss)
 {
     s = new slot[8];
     for (int i = 0; i < 8; i++)
     {
         s[i] = new slot();
     }
     for (int i = 0; i < ss.Length; i++)
     {
         s[i] = ss[i];
     }
 }
Example #5
0
        public state()
        {
            s = new slot[8];
            for (int i = 0; i < 8; i++)
            {
                s[i] = new slot();
            }

            dom = new int[8, 8];
            for (int i = 0; i < 8; i++)
            {
                for (int i2 = 0; i2 < 8; i2++)
                {
                    dom[i, i2] = 1;
                }
            }
        }
Example #6
0
 public slot(slot s)
 {
     l = s.l;
     c = s.c;
 }
Example #7
0
 public void set(slot[] ss)
 {
     s=ss;
 }
Example #8
0
 public bool isdiag(slot a, slot b)
 {
     if(Math.Abs(a.c-b.c)==Math.Abs(a.l-b.l))
         return true;
     if((a.c+a.l)==(b.c+b.l))
         return true;
     return false;
 }
Example #9
0
 public slot(slot s)
 {
     l=s.l;
     c=s.c;
 }