Ejemplo n.º 1
0
            internal Puzzle Read()
            {
                var size = ReadDimensions();
                var grid = ReadGrid(size);

                return(Puzzle.FromGrid(grid));
            }
 public Puzzle ToPuzzle()
 {
     return(Puzzle.FromGrid(this.Contents.Map(cell => cell.Value == Square.FILLED)));
 }