@ -11,11 +11,16 @@ public class Figure
return false;
}
if (field.length == fieldSize)
if (field.length != fieldSize)
{
return true;
if (dst >= 56)
@ -40,4 +40,11 @@ class FigureTest
Figure f = new Figure();
assertTrue(f.moveAllowed(48,40, new int[Figure.fieldSize]));
@Test
void whiteFarmerInvalidDestinationDown() // statt nach "oben" wird nach "unten" gegangen
assertFalse(f.moveAllowed(48,56, new int[Figure.fieldSize]));