From 8efecebc4a9e56a7422ebf6610f00728829b1a5b Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 12 Mar 2018 13:49:29 -0400 Subject: [PATCH] Stop all other pieces causing an error --- lib/chess/moves.ex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/chess/moves.ex b/lib/chess/moves.ex index 2594e15..fce2b0e 100644 --- a/lib/chess/moves.ex +++ b/lib/chess/moves.ex @@ -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