public interface LightUpSolver
| Modifier and Type | Method and Description |
|---|---|
String |
solve(String desc)
This method computes the solution for a lightUp puzzle.
|
String solve(String desc) throws LightsFormatException, org.sat4j.specs.TimeoutException
The implementation must take a non-null String describing a
board. The board description is in the format accepted by
Lights.Lights(String).
It must also return a String which is in the format returned by
Lights.toString(). and return a String. May return null to
indicate that no solution is available.
If no solution can be found, null can be returned.
desc - the board description, not nullnullLightsFormatException - if desc is not correctly formatted.org.sat4j.specs.TimeoutException - if the sat solver times out.