Solves complex sudoku probems.
Original UML diagram with incomplete command pattern
Updated UML diagram with command pattern and iterator pattern
Sequence diagram did not change
- Tested the backtracking manually. The backtracking works as intended.
- Works for "Puzzle-36x36-01-B001.txt" The other two require too many guesses and thus too much recursion.
- It makes the encapsulation stronger.
- Now you can loop through Sudoku like an iterator
- Wrote tests for these
- ReadCommand to read sudokus from a file.
- ReadWriteCommand to read sudokus from a file, solve it and write it back to output file.
- Invoker keeps track of maximum N command history to avoid overwhelming memory.
- Wrote tests for these