@ -78,7 +78,7 @@ public class ChessFigure {
return true;
break;
case BISHOP:
if (dx == dy)
if (Math.abs(dx) == Math.abs(dy))
case KNIGHT:
@ -80,7 +80,7 @@ class ChessFigureTest {
}
if (x == y) {
if (Math.abs(x) == Math.abs(y)) {
assertTrue(figure.isRelativeMoveValid(x, y));
continue;