public static EditorGrid FromStrings(params string[] rows)
 {
     return(new EditorGrid(Square.CreateGrid(rows)));
 }
Пример #2
0
 /// <summary>
 /// Creates a Puzzle from a sequence of strings representing
 /// the rows of the solution of a puzzle. A 'x' represents
 /// a filled square, a '.' corresponds to an empty square.
 /// </summary>
 /// <param name="rows">Strings representing rows.</param>
 /// <returns>Puzzle.</returns>
 public static Puzzle FromRowStrings(params string[] rows)
 {
     return(FromGrid(Square.CreateGrid(rows)));
 }