public Cube() { int i; for (i=0;i<12;i++) edges[i] = new Edge((EdgeId)i); for (i=0;i<8;i++) corners[i] = new Corner((CornerId)i); }
public Cube(string ep, string eo, string cp, string co) : this() { string[] s1, s2; int i; s1 = ep.Split(' '); s2 = eo.Split(' '); for (i = 0; i < 12; i++) edges[i] = new Edge((EdgeId)Int32.Parse(s1[i]),Int32.Parse(s2[i])); s1 = cp.Split(' '); s2 = co.Split(' '); for (i = 0; i < 8; i++) corners[i] = new Corner((CornerId)Int32.Parse(s1[i]), Int32.Parse(s2[i])); }