8d57550d02
Sudoku: make it possible to preserve the RawData from the ScratchPad and use it in the solving process.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7263 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-10 11:11:56 +00:00
153d084e6e
Sudoku:
...
- validate user input before trying to solve.
- stop calculating if nothing has changed.
- refine messages if puzzle isn't solved.
- remove unused code.
- rename some methods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7251 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-09 12:32:47 +00:00
046838f1ce
Sudoku: move DbgS() functions to the unit where the types concerned are defined.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7244 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-06 09:37:40 +00:00
636e8484ce
Sudoku: implement a scratchpad for Sudoku's that aren't completely solved.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7242 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-05 13:56:22 +00:00
46162a2189
Sudoku: unify indentation style (begin..end blocks). No functional changes.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7241 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-05 11:58:57 +00:00
dcbe588b51
Sudoku: refactor unit SudokuType: more verbose names of types, methods and parameters. No functional changes.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7238 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-05 11:41:05 +00:00
2b77fd9f3e
Sudoku: refactor unit SudokuType: calculated wethere sudoku is solved in one step.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7237 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-05 11:18:48 +00:00
9c5bbcad39
Sudoku: refactor unit SudokuType. Less hints.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7236 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-05 11:01:07 +00:00
7f3b147fc1
Sudoku: make TSudoku internally work with integers, not characters.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7229 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-04 17:39:25 +00:00
2070a8bf06
Sudoku: give better message if sudoku isn't completely solved.
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7224 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-04 15:20:09 +00:00
e154c5a902
Add Sudoku solver application. Initial import (original code by Matthijs Willemstein).
...
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7217 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-01-04 14:39:11 +00:00