Browse Source

initial placement white rook a1

feat-figureMovement
JD 4 years ago
parent
commit
4ca6b4766a
  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

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

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

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

Loading…
Cancel
Save