1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Stop all other pieces causing an error

This commit is contained in:
Daniel Barber 2018-03-12 13:49:29 -04:00
parent 568c2cf7ff
commit 8efecebc4a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -12,6 +12,14 @@ defmodule Chess.Moves do
Pawn.moves(board, {file, rank})
%{"type" => "rook"} ->
Rook.moves(board, {file, rank})
%{"type" => "bishop"} ->
[]
%{"type" => "knight"} ->
[]
%{"type" => "king"} ->
[]
%{"type" => "queen"} ->
[]
end
end
end