示例#1
0
        public MainForm()
        {

            InitializeComponent();

            // Choose the initial grid size
            mRows = 10;
            mCols = 10;

            // Initialize the grid
            mFieldGrid = new FieldGrid(mRows, mCols);

            // Update the grid
            UpdateGrid();
        }
示例#2
0
 /// <summary>
 /// Public constructor, it gets the grid on which work on
 /// </summary>
 /// <param name="fieldgrid"></param>
 public MazeSolver(FieldGrid fieldgrid)
 {
     mGrid      = fieldgrid;
     mSolutions = new List <List <FieldCoord> >();
 }