-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
47 lines (34 loc) · 936 Bytes
/
main.cpp
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
# include "src/nonogram.hpp"
#include <iostream>
// nonogram.hpp
// enum class State {
// UNKNOWN,
// FILLED,
// EMPTY
// };
// class Nonogram
// {
// public:
// Nonogram(const std::string& filename);
// void solve() noexcept;
// void print(std::ostream& out) const noexcept;
// private:
// std::vector<std::vector<State>> _board;
// std::vector<std::vector<unsigned>> _row_clues;
// std::vector<std::vector<unsigned>> _col_clues;
// unsigned solve(unsigned x, unsigned y, unsigned dx, unsigned dy, const std::vector<unsigned>& clues) noexcept;
// };
// std::ostream operator<<(std::ostream& out, const Nonogram& nonogram) noexcept;
int main()
{
Nonogram nonogram("test.txt");
nonogram.solve();
// nonogram.solve(true);
// nonogram.solve(true);
// nonogram.solve(false);
// std::cout << "\n\n\n\n\n";
// nonogram.solve(true, 11u);
// nonogram.solve(true);
std::cout << nonogram << std::endl;
return 0;
}