Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Field"/> class with the given layout.
 /// </summary>
 /// <param name="mineLayout">The mine layout.</param>
 public Field(string mineLayout)
 {
     Cells = FieldMapFactory.GetFieldMap(mineLayout);
     Initialize();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Auto initializes a new instance of the <see cref="Field"/> class.
 /// </summary>
 /// <param name="rows">The rows.</param>
 /// <param name="columns">The columns.</param>
 public Field(int rows, int columns)
 {
     Cells = FieldMapFactory.GetFieldMap(rows, columns);
     Initialize();
 }