Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The file format that the program saves is identical to the format used for loading, so cell values can be saved and re-loaded.

 Validating  Validate the Board:

 Clicking the {Validate}} button will pop up a message dialog box with information on the state of the board.    This button, which is fully operational in the supplied code, is a very useful tool to check your code's performance as you work.  The information shown includes

  • If the board is solved.
  • If the board is valid but not solved.  The board could be irreducible however. 
  • The board is invalid
    • The same value appears more than once -- the offending row, column or block is shown
    • An invalid value is present, e.g. a negative number -- the offending row, column or block is shown.
    • A cell is empty - Only one empty cell per cell set is detected.   There may be more empty cells present.

All recution and solving operations should always leave the board in a valid state, unless the board is unsolvable, wherein a cell may become empty.

See the note about the GameModel.validateBoard() method in the Code Details wiki page!!

Perform Performing a Single Reduction Pass on the Board.

...