32 lines
516 B
C++
32 lines
516 B
C++
|
|
#include "field.hpp"
|
|
#include "clusters.hpp"
|
|
#include "solver.hpp"
|
|
#include "generator.hpp"
|
|
|
|
#include <iostream>
|
|
#include <random>
|
|
#include <chrono>
|
|
#include <thread>
|
|
|
|
template <typename Field>
|
|
auto is_void(Field const & field){
|
|
for(auto&& p : field.all_positions()){
|
|
if(!field.empty(p)) return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
int main(){
|
|
using namespace std;
|
|
|
|
std::random_device rd;
|
|
std::mt19937 gen(rd());
|
|
|
|
auto field = random_field<5, 5>(gen);
|
|
|
|
field.print(std::cout);
|
|
|
|
cout << solve(field) << std::endl;
|
|
}
|
|
|