@ -35,6 +35,8 @@ public class Game
mField[Game.blackRowFarmer * Figure.fieldLength + j] = new FigureFarmer(FigureFarmer.Color.Black);
}
mField[Figure.fieldLength * 0 + 0] = new FigureRook(); // schwarzer Turm a8
boolean moveFigure(int src, int dst)
@ -68,6 +68,15 @@ class GameTest
@Test
void newGameInitializationFigurePositionsRooks()
{
// schwarzer Turm a8
assertEquals(new FigureRook().getClass(),
g.mField[Figure.fieldLength * 0 + 0].getClass());
void moveFarmerWhite() // weißer Bauer ganz links um ein Feld noch vorne bewegen