Project architecture and naive solver solution

Set up project architecture interfaces and add a naive implementation
of a solver in DumbBruteSolver
This commit is contained in:
maddiebaka
2024-03-26 16:25:34 -04:00
parent 562742206a
commit 8386ace107
10 changed files with 291 additions and 22 deletions

View File

@@ -13,10 +13,10 @@ public abstract class SolutionTestBase {
/**
* Implement your solution in this function.
* */
protected abstract void solve(PadlockImpl padlock);
protected abstract void solve(PadlockAdapter padlock);
protected void verify(int numpadSize) {
PadlockImpl padlock = new PadlockImpl(numpadSize);
PadlockAdapter padlock = new PadlockJavaAdapter(numpadSize);
solve(padlock);
assertTrue(padlock.isPasscodeCorrect());
}