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:
parent
568c2cf7ff
commit
8efecebc4a
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user