Some solutions for the julia path
This commit is contained in:
15
julia/chessboard/chessboard.jl
Normal file
15
julia/chessboard/chessboard.jl
Normal file
@@ -0,0 +1,15 @@
|
||||
function rank_range()
|
||||
return 1:8
|
||||
end
|
||||
|
||||
function file_range()
|
||||
return 'A':'H'
|
||||
end
|
||||
|
||||
function ranks()
|
||||
return collect(rank_range())
|
||||
end
|
||||
|
||||
function files()
|
||||
return collect(file_range())
|
||||
end
|
||||
Reference in New Issue
Block a user