Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/SGFKit/Collection+SGF.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
extension Collection {

/// Converts the collection to a SGF text.
func convertToSGF() -> String {
public func convertToSGF() -> String {
convertToNonTerminalSymbol().convertToSGF()
}

/// Converts the collection to non terminal symbols.
func convertToNonTerminalSymbol() -> NonTerminalSymbols.Collection {
public func convertToNonTerminalSymbol() -> NonTerminalSymbols.Collection {
let gameTrees = nodes.map { gameTree(from: $0) }
return NonTerminalSymbols.Collection(gameTrees: gameTrees)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/SGFKit/Node.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class Node<Game: SGFKit.Game> {

/// Makes the node.
/// - Parameter properties: The property of the node.
public init(properties: [Property]) {
public init(properties: [Property] = []) {
self.number = nil
self.properties = properties
}
Expand Down