diff --git a/lib/chess/board.ex b/lib/chess/board.ex index c89af74..204c887 100644 --- a/lib/chess/board.ex +++ b/lib/chess/board.ex @@ -4,7 +4,8 @@ defmodule Chess.Board do def transform(board) do Enum.map(0..7, fn (rank) -> Enum.map(0..7, fn (file) -> - board["#{file},#{rank}"] + board + |> piece({file, rank}) end) end) end