-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainDriver_PA04.c
52 lines (38 loc) · 1.21 KB
/
MainDriver_PA04.c
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
47
48
49
50
51
52
// header files
#include <time.h>
#include "SudokuUtility.h"
// main program
int main()
{
// initialize function/variables
// initialize variables
CellNodeType **sudokuArray;
int numToRemove = 15;
bool showGrid = true;
// initialize array
// function: createSudokuArray
sudokuArray = createSudokuArray();
// seed random generator
// function: srand
srand( time( NULL ) );
// show title
// function: printf
printf( "\nSudoku Generation Program\n" );
printf( "=========================\n\n" );
// get input
// no user input acquired
// implement processing, including display components
// function: createSudokuGame
createSudokuGame( sudokuArray, numToRemove, showGrid );
// display results
// result display is integrated into create game operation
// end program
// clear array
// function: clearArray
sudokuArray = clearSudokuArray( sudokuArray );
// display end program
// function: printf
printf( "\nProgram End\n" );
// return program success
return 0;
}