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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user