Browse Source

initial placement white rook h1

feat-figureMovement
JD 4 years ago
parent
commit
33f141832d
  1. 1
      fh.fd.ci.client/src/main/java/de/fd/fh/Game.java
  2. 3
      fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java

1
fh.fd.ci.client/src/main/java/de/fd/fh/Game.java

@ -39,6 +39,7 @@ public class Game
mField[Figure.fieldLength * 0 + 0] = new FigureRook(); // schwarzer Turm a8
mField[Figure.fieldLength * 0 + 7] = new FigureRook(); // schwarzer Turm h8
mField[Figure.fieldLength * 7 + 0] = new FigureRook(); // weißer Turm a1
mField[Figure.fieldLength * 7 + 7] = new FigureRook(); // weißer Turm h1
}
boolean moveFigure(int src, int dst)

3
fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java

@ -76,7 +76,8 @@ class GameTest
@CsvSource({
"0, 0", // schwarzer Turm a8
"0, 7", // schwarzer Turm h8
"7, 0" // weißer Turm a1
"7, 0", // weißer Turm a1
"7, 7" // weißer Turm h1
})
void newGameInitializationFigurePositionsRooks(int row, int col)
{

Loading…
Cancel
Save