|
@ -55,4 +55,11 @@ class FigureTest |
|
|
Figure f = new Figure(); |
|
|
Figure f = new Figure(); |
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 3 + 3, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 3 + 3, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void whiteRookInvalidMoveRightUp() // diagonal nach rechts oben |
|
|
|
|
|
{ |
|
|
|
|
|
Figure f = new Figure(); |
|
|
|
|
|
assertFalse(f.moveAllowed(36, 29, new int[8 * 8])); |
|
|
|
|
|
} |
|
|
} |
|
|
} |