|
|
@ -62,4 +62,11 @@ class FigureTest |
|
|
|
Figure f = new Figure(); |
|
|
|
assertTrue(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 3 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void whiteFarmerInvalidDestinationDownVar2() // Bauer (w) steht in der Mitte vom Feld und geht 1 nach unten |
|
|
|
{ |
|
|
|
Figure f = new Figure(); |
|
|
|
assertFalse(f.moveAllowed(Figure.fieldLength * 4 + 4, Figure.fieldLength * 5 + 4, new int[Figure.fieldLength * Figure.fieldLength])); |
|
|
|
} |
|
|
|
} |