Exemple #1
0
 public void load(BoardTab oldBoard)
 {
     clear();
     for (byte y = 0; y < 9; y++)
     {
         for (byte x = 0; x < 9; x++)
         {
             board[y, x].value    = oldBoard.get(y, x);
             board[y, x].readOnly = oldBoard.getReadOnly(y, x);
         }
     }
 }
Exemple #2
0
        public BoardTab(BoardTab boardOld)  //create copy
        {
            for (byte y = 0; y < 9; y++)
            {
                for (byte x = 0; x < 9; x++)
                {
                    board[y, x].value    = boardOld.get(y, x);
                    board[y, x].readOnly = boardOld.getReadOnly(y, x);

                    //copy fake candidate
                    fakeCandidateBoard[y, x] = boardOld.fakeCandidateBoard[y, x];
                }
            }
        }