-
Notifications
You must be signed in to change notification settings - Fork 0
/
SudokuPuzzle.h
46 lines (33 loc) · 992 Bytes
/
SudokuPuzzle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include <vector>
#include "CellGroup.h"
#include "Cell.h"
#include <conio.h>
#include <iostream>
#include <fstream>
using namespace std;
// Add your code here
class SudokuPuzzle {
public:
SudokuPuzzle();
~SudokuPuzzle();
void solve (const char filenameIn[]);
private:
//void Print_Sudoku_Row_Column_Block() ;
void readPuzzle(const char filenameIn[]);
void DisplaySoduko_Solution()const;
bool SolveSudoku();
void GetBoxIndex(const int row, const int column, int* const PointerTo_m_blockMatrix_pointer_value_Indexof_theSingleBlock)const;
int Getblockindex2(int const row, int const column)const ;
int Getblockindexvalue(int const row, int const column)const ;
bool hiddensingle();
CellGroup m_cellRows[9];
CellGroup m_CellColumns[9];
CellGroup m_CellBlocks[9];
const int m_Lenght = 9;
bool solvepuzzle = false ;
//int m_blockMatrix[2];
int Check_NumberGoing_IntotheLoop;
bool Make_Everynumber_Inthe_LoopTrue = true;
int numberofcellsolved;
};