summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2016-09-08 21:03:48 +0200
committerzedarider <ymherklotz@gmail.com>2016-09-08 21:03:48 +0200
commit3f8e364dcf8f8cf24a790850f5a04b66e8ba613b (patch)
tree516a20956e77c3afcdb667cdee12d3ea84add9d9 /include
parentd8eb32cf50731b1dd8e637c700d03bd7a7b87d3b (diff)
downloadsudoku_solver-3f8e364dcf8f8cf24a790850f5a04b66e8ba613b.tar.gz
sudoku_solver-3f8e364dcf8f8cf24a790850f5a04b66e8ba613b.zip
Finished the first part of the sudoku solverHEADmaster
Diffstat (limited to 'include')
-rw-r--r--include/sudoku_solver.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sudoku_solver.hpp b/include/sudoku_solver.hpp
index c3a685b..fc84714 100644
--- a/include/sudoku_solver.hpp
+++ b/include/sudoku_solver.hpp
@@ -33,10 +33,13 @@ public:
SudokuSolver();
~SudokuSolver();
- void printGrid();
+ void printGrid(std::vector<int> &grid);
+ void initGrid(std::vector<int> &new_grid);
bool checkBox(unsigned int &grid_location, std::vector<int> &curr_grid);
bool checkRow(unsigned int &grid_location, std::vector<int> &curr_grid);
bool checkColumn(unsigned int &grid_location, std::vector<int> &curr_grid);
+ bool emptyLocation(unsigned int &curr_location);
+ bool isValid(unsigned int &grid_location, std::vector<int> &curr_grid);
int getBox(unsigned int grid_location);
protected:
private: