Changed visibility from package to interal
This commit is contained in:
19
Sources/Engine/Pieces/CommonMoves.swift
Normal file
19
Sources/Engine/Pieces/CommonMoves.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
internal protocol DiagonalMoves {
|
||||
func getDiagonalMoves(from pos: Square.Position) -> [Square.Position]
|
||||
}
|
||||
|
||||
extension DiagonalMoves {
|
||||
func getDiagonalMoves(from pos: Square.Position) -> [Square.Position] {
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
internal protocol LinearMoves {
|
||||
func getLinearMoves(from pos: Square.Position) -> [Square.Position]
|
||||
}
|
||||
|
||||
extension LinearMoves {
|
||||
func getLinearMoves(from pos: Square.Position) -> [Square.Position] {
|
||||
return []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user