From b5dc5a42283e88041b678cc21da9e55d19212bb4 Mon Sep 17 00:00:00 2001 From: jylkyle Date: Sat, 18 Feb 2023 20:49:19 -0800 Subject: [PATCH] Movement restriction for Knight --- src/Knight.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Knight.java b/src/Knight.java index 41f35de..5c1489c 100644 --- a/src/Knight.java +++ b/src/Knight.java @@ -15,6 +15,7 @@ public class Knight extends Piece { possibleMoves.add(new BoardCoordinate(position.x + 1, position.y + 2)); possibleMoves.add(new BoardCoordinate(position.x - 1, position.y + 2)); possibleMoves.add(new BoardCoordinate(position.x - 2, position.y + 1)); + // test return possibleMoves; } }