|
|
@ -77,4 +77,11 @@ class FigureTest |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 0 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void whiteRookValidMoveDown() |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 7 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
} |