27 lines
473 B
C++
27 lines
473 B
C++
|
|
#include "field.hpp"
|
|
#include "clusters.hpp"
|
|
#include "solver.hpp"
|
|
#include "generator.hpp"
|
|
|
|
#include <iostream>
|
|
#include <random>
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
int main(){
|
|
using namespace std;
|
|
|
|
std::random_device rd;
|
|
std::mt19937 gen(rd());
|
|
|
|
std::cout << std::endl;
|
|
auto field = random_field<3, 3>(gen);
|
|
|
|
field.print(std::cout);
|
|
|
|
auto solution = solve(field);
|
|
for(auto&& t : solution.taps){
|
|
std::cout << "(" << t.first << ", " << t.second << ")\n";
|
|
}
|
|
}
|