Exemple #1
0
 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]);
     }
 }
Exemple #2
0
 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]);
     }
 }
Exemple #3
0
        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();
        }