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]; }
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; }
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); }
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]; } }
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; } } }
public slot(slot s) { l = s.l; c = s.c; }
public void set(slot[] ss) { s=ss; }
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; }
public slot(slot s) { l=s.l; c=s.c; }