1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
puzzle-wuzzle-generator/main.cpp

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;
}