예제 #1
0
 /// <summary>
 /// Copy Constructor
 /// </summary>
 /// <param name="another"></param>
 public SodokuItem(SodokuItem another)
 {
     Init();
     for (int i = 0; i < 9; i++)
     {
         InsertItem(new CellContent(another[i]), i);
     }
 } // ctor
예제 #2
0
        public SodokuItem GetColumnAt(int x)
        {
            x = ValidateIndex(x);
            SodokuItem column = new SodokuItem();

            for (int n = 0; n < 9; n++)
            {
                column.ReplaceItem(rows[n][x], n);
            }
            return(column);
        }
예제 #3
0
 public Sodoku3x3(SodokuItem another) : base(another)
 {
     ;
 }