From 33f141832dd6305d5a22ad948b1b0961c7bf1176 Mon Sep 17 00:00:00 2001 From: Julius Dewender Date: Sun, 31 Jan 2021 18:22:05 +0100 Subject: [PATCH] initial placement white rook h1 --- fh.fd.ci.client/src/main/java/de/fd/fh/Game.java | 1 + fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fh.fd.ci.client/src/main/java/de/fd/fh/Game.java b/fh.fd.ci.client/src/main/java/de/fd/fh/Game.java index ce289f1..ded0c96 100644 --- a/fh.fd.ci.client/src/main/java/de/fd/fh/Game.java +++ b/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) diff --git a/fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java b/fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java index d061ed4..10b4eb4 100644 --- a/fh.fd.ci.client/src/test/java/de/fd/fh/GameTest.java +++ b/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) {