Browse Source

small Refactoring: chooseFieldBelowAfterHit

Max Wenzel 3 years ago
parent
commit
e7fc5c7d20
  1. 4
      src/test/java/de/tims/fleetstorm/ai/LogicTest.java

4
src/test/java/de/tims/fleetstorm/ai/LogicTest.java

@ -279,12 +279,12 @@ class LogicTest {
Logic logic = new Logic(); Logic logic = new Logic();
int size = 4; int size = 4;
Coordinate center = new Coordinate(2, 2); Coordinate center = new Coordinate(2, 2);
Coordinate empty = new Coordinate(2, 3);
// Coordinate empty = new Coordinate(2, 3);
Coordinate expectedResult = new Coordinate(2, 1); Coordinate expectedResult = new Coordinate(2, 1);
Matchfield matchfield = new Matchfield(size); Matchfield matchfield = new Matchfield(size);
matchfield.createMatchfield(); matchfield.createMatchfield();
matchfield.setState(center, Coordinate.HIT); matchfield.setState(center, Coordinate.HIT);
matchfield.setState(empty, Coordinate.EMPTY);
// matchfield.setState(empty, Coordinate.EMPTY);
matchfield.setState(expectedResult, Coordinate.HIT); matchfield.setState(expectedResult, Coordinate.HIT);
logic.setMatchfield(matchfield); logic.setMatchfield(matchfield);
logic.setLastShot(center); logic.setLastShot(center);

Loading…
Cancel
Save