|
|
@ -69,4 +69,12 @@ class FigureTest |
|
|
|
Figure f = new FigureFarmer(); |
|
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 5 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
|
|
|
|
// weißer Turm |
|
|
|
@Test |
|
|
|
void whiteRookValidMoveUp() |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 0 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
} |