From e7fc5c7d20ffb6d376b5bbe9ea15119149d917cb Mon Sep 17 00:00:00 2001 From: Max Wenzel Date: Fri, 14 Jan 2022 16:50:25 +0100 Subject: [PATCH] small Refactoring: chooseFieldBelowAfterHit --- src/test/java/de/tims/fleetstorm/ai/LogicTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java index cd6461f..1662c6c 100644 --- a/src/test/java/de/tims/fleetstorm/ai/LogicTest.java +++ b/src/test/java/de/tims/fleetstorm/ai/LogicTest.java @@ -279,12 +279,12 @@ class LogicTest { Logic logic = new Logic(); int size = 4; Coordinate center = new Coordinate(2, 2); - Coordinate empty = new Coordinate(2, 3); + // Coordinate empty = new Coordinate(2, 3); Coordinate expectedResult = new Coordinate(2, 1); Matchfield matchfield = new Matchfield(size); matchfield.createMatchfield(); matchfield.setState(center, Coordinate.HIT); - matchfield.setState(empty, Coordinate.EMPTY); + // matchfield.setState(empty, Coordinate.EMPTY); matchfield.setState(expectedResult, Coordinate.HIT); logic.setMatchfield(matchfield); logic.setLastShot(center);