prompt description
This commit is contained in:
10
prompts/9-weighted-random-selector
Normal file
10
prompts/9-weighted-random-selector
Normal file
@@ -0,0 +1,10 @@
|
||||
in wfc.hpp there are 2 random selector structs. I want you to create another one that can be used to give weights to values.
|
||||
use 16-bit for the individual weights for each value. The weights should work at compile time.
|
||||
The WeightedSelector is a RandomSelector that uses another random selector as a backend.
|
||||
example of how the weights should work:
|
||||
Builder::
|
||||
::DefineIDs<...>
|
||||
::DefinedConstrainer<...>
|
||||
::SetRandomSelector<...>
|
||||
::Weights<DEFAULT_WEIGHT, Weight<VarT, WEIGHT>, Weight<VarT, WEIGHT>, ...>
|
||||
::Build
|
||||
Reference in New Issue
Block a user