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
2014-02-13 22:31:02 +01:00

27 lines
487 B
C++

#include "dynamic_grid.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_dynamic_grid(3, 3, gen);
field.print(std::cout);
auto solution = solve(field);
for(auto&& t : solution.taps){
std::cout << "(" << t.first << ", " << t.second << ")\n";
}
}