@ -10,7 +10,8 @@ public class FigureBishop extends Figure
return false;
}
if (dst - src == 1 || dst - src == 6) // 1 Feld nach rechts
if (dst - src == 1 || dst - src == 6
|| dst - src == 10) // 1 Feld nach rechts
{
@ -40,4 +40,12 @@ class FigureBishopTest
assertFalse(f.moveAllowed(src, dst, field));
@Test
void checkValidMovesBishopRight3()
Figure f = new FigureBishop();
assertFalse(f.moveAllowed(45, 55, field));