Advertisement
Guest User

#2

a guest
Apr 7th, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public void fillInnRemainingOfBoard() throws Exception {           
  2.     if (next == null && legalValue(this.getNumericValue()))
  3.         return;
  4.        
  5.     if (this instanceof PrefilledSquare)
  6.         next.fillInnRemainingOfBoard();
  7.     else {
  8.         for (int value = 1; value <= row.getLength(); value++) {
  9.             if (legalValue(value)) {
  10.                 value = value + "";
  11.                 illInnRemainingOfBoard();
  12.             }
  13.         }
  14.         value = 0 + "";
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement