コード例 #1
0
 public static EditorGrid FromStrings(params string[] rows)
 {
     return(new EditorGrid(Square.CreateGrid(rows)));
 }
コード例 #2
0
ファイル: Puzzle.cs プロジェクト: LiamThys/picross-student
 /// <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)));
 }