...
- Keep references to BOTH the original board and the cell you found.
- Get an array copy of the values in the cell.
Cell.getValueArray()
makes a copy. You can use this array to loop over. - In your loop:
- Clear the contents of the cell. This will mutate your original board!
- Set the value of the cell to the desired test value.
- Make a copy of the orignal board.
- Solve the copy of the board -- you will need to set the current board to the copy. Don't mess up the original board!
- Repeat with the next test value if no solution or quit if you find a solution.
...