private void RestoreMarker() { m_Rows = new PuzzleRow[m_MarkerRows.Length]; for (int i = 0; i < m_Rows.Length; i++) { m_Rows[i] = new PuzzleRow(m_MarkerRows[i]); } }
public PuzzleRow(PuzzleRow Other) { m_Cells = new PuzzleCell[Other.m_Cells.Length]; for (int i = 0; i < m_Cells.Length; i++) { m_Cells[i] = new PuzzleCell(Other.m_Cells[i]); } }
public Puzzle(int iSeed, int iSize, int iDifficulty) { m_iSeed = iSeed; m_iSize = iSize; m_iDifficulty = iDifficulty; m_Rand = new Random(iSeed); m_Rows = new PuzzleRow[m_iSize]; for (int i = 0; i < iSize; i++) { m_Rows[i] = new PuzzleRow(iSize); } GenerateSolution(); GenerateClues(); }