|
@ -84,4 +84,11 @@ class FigureTest |
|
|
Figure f = new Figure(); |
|
|
Figure f = new Figure(); |
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 7 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 7 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void whiteRookInvalidMoveLeftUp() // diagonal nach links oben |
|
|
|
|
|
{ |
|
|
|
|
|
Figure f = new Figure(); |
|
|
|
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 3 + 3, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
|
|
} |
|
|
} |
|
|
} |