|
@ -68,7 +68,7 @@ class ChessFigureTest { |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case QUEEN: |
|
|
case QUEEN: |
|
|
if ((x == y) || (x == 0 ^ y == 0)) { |
|
|
|
|
|
|
|
|
if (Math.abs(x) == Math.abs(y) || (x == 0 ^ y == 0)) { |
|
|
assertTrue(figure.isRelativeMoveValid(x, y)); |
|
|
assertTrue(figure.isRelativeMoveValid(x, y)); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|