5 lines
807 B
Plaintext
5 lines
807 B
Plaintext
in wfc.hpp I want you to implement a way for the user to customize the way random cells are picked in the Branch function. Right now it just uses uniform_int_distribution and mt19937 to generate random indices, but I want the user to be able to supply their own functions and data using lambdas.
|
|
The lambda should be supplied an std::span<VarT> of possible cell values and should return the index.
|
|
Test this by making a default randomization function a constexpr simple seed randomizer using a mutable lambda to change the seed.
|
|
Add a more advanced one that uses the uniform_int_distribution and mt19937 implementation that is currently in use.
|
|
The goal of this project is to be able to use the wfc algorithm at compile time, to be able to solve sudokus at compile time. So make sure its constexpr friendly. |