libroot/posix/stdio: Remove unused portions.
[haiku.git] / src / apps / sudoku / SudokuGenerator.h
blobfbdb8f8eb12903e48e0170a95c9ed6678edd136f
1 /*
2 * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef SUDOKU_GENERATOR_H
6 #define SUDOKU_GENERATOR_H
9 #include <vector>
11 #include <Messenger.h>
12 #include <SupportDefs.h>
14 class SudokuField;
17 class SudokuGenerator {
18 public:
19 SudokuGenerator();
20 ~SudokuGenerator();
22 void Generate(SudokuField* field, uint32 fieldsLeft,
23 BMessenger progress, volatile bool *quit);
25 private:
26 void _Progress(BMessenger progress, const char* text, float percent);
27 bool _HasOnlyOneSolution(SudokuField& field);
30 #endif // SUDOKU_GENERATOR_H