1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <ctime>
 
#include "SudokuGen.h"
#include "SudokuPDF.h"
 
const int numWidth = (int)log10((float)RAND_MAX) + 1;
 
int main(int argc, char** argv)
{
       // get the seed value for the board
       srand(argc > 1 ? atoi(argv[1]) : time(NULL));
       int seed = rand();
       
       // difficulty level
       SudokuSolver::Difficulty d = SudokuSolver::HARD;
       
       // generate the board and output it to file
       SudokuGen gen(d, SudokuGen::STANDARD, seed);
       boardToPDF("Board Title", gen, "output.pdf");
};