]> git.itanic.dy.fi Git - sudoku/blobdiff - sudoku.h
Store the guesses variable as per object instead of global variable
[sudoku] / sudoku.h
index 986d63a166fbd9513177120b37b93690814433df..9575e7cb2b35aebdd1342c75fc46d8dff85c9f28 100644 (file)
--- a/sudoku.h
+++ b/sudoku.h
@@ -3,7 +3,6 @@
 
 #include <vector>
 
-extern int guesses;
 extern int verbose;
 
 class sudoku {
@@ -24,8 +23,9 @@ public:
        std::vector<sudoku> solve_all();
 
        int recursion_depth;
-private:
+       int guesses;
 
+private:
        std::string get_row_contents(const int row);
        std::string get_col_contents(const int col);
        std::string get_block_contents(const int col, const int row);