blob: a1faba992b640e962fd6a60de500ed55d02180e9 (
plain) (
blame)
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
|
#include <functional>
#include <iostream>
#include <string_view>
#include <vector>
#include "Generate.h"
#include "PuzzlesetEasy.h"
#include "PuzzlesetHard.h"
#include "PuzzlesetMedium.h"
int main(int, char**) {
const std::vector<std::function<void(Generate&)>>& easy_gens =
GetEasyPuzzles();
for (size_t i = 0; i < easy_gens.size(); i++) {
std::cout << "Generate EASY choice " << std::dec << i << ":" << std::endl;
Generate generator;
easy_gens.at(i)(generator);
}
const std::vector<std::function<void(Generate&)>>& medium_gens =
GetMediumPuzzles();
for (size_t i = 0; i < medium_gens.size(); i++) {
std::cout << "Generate MEDIUM choice " << std::dec << i << ":" << std::endl;
Generate generator;
medium_gens.at(i)(generator);
}
const std::vector<std::function<void(Generate&)>>& hard_gens =
GetHardPuzzles();
for (size_t i = 0; i < hard_gens.size(); i++) {
std::cout << "Generate HARD choice " << std::dec << i << ":" << std::endl;
Generate generator;
hard_gens.at(i)(generator);
}
return 0;
}
|