From 58da85a5fd6caf4e23b3a634847480a6101d39d0 Mon Sep 17 00:00:00 2001 From: djmil Date: Wed, 27 Sep 2023 17:28:54 +0200 Subject: [PATCH] final --- .../src/test/java/djmil/cordacheckers/CheckersMoveTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/test/java/djmil/cordacheckers/CheckersMoveTest.java b/backend/src/test/java/djmil/cordacheckers/CheckersMoveTest.java index d7ec54d..2c020ac 100644 --- a/backend/src/test/java/djmil/cordacheckers/CheckersMoveTest.java +++ b/backend/src/test/java/djmil/cordacheckers/CheckersMoveTest.java @@ -128,7 +128,7 @@ public class CheckersMoveTest { return Jump.intersect(allJumps, allSteps); } - public Set getWhiteJumps(Integer idx) { + public static Set getWhiteJumps(Integer idx) { final var allSteps = getWhiteSteps(idx); final var allJumps = adjacentCell.get(idx).stream() .filter(cur -> idx > cur && idx - cur > 5) @@ -137,7 +137,7 @@ public class CheckersMoveTest { return Jump.intersect(allJumps, allSteps); } - public Set getKingJumps(Integer idx) { + public static Set getKingJumps(Integer idx) { final var allSteps = getKingSteps(idx); final var allJumps = adjacentCell.get(idx).stream() .filter(cur -> abs(idx - cur) > 5)