From 399e7eeaee1fad90ce73c49b78571289016ee452 Mon Sep 17 00:00:00 2001 From: Connor De Meyer Date: Mon, 1 Sep 2025 14:31:42 +0900 Subject: [PATCH] prompt description --- prompts/9-weighted-random-selector | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 prompts/9-weighted-random-selector diff --git a/prompts/9-weighted-random-selector b/prompts/9-weighted-random-selector new file mode 100644 index 0000000..986e0f6 --- /dev/null +++ b/prompts/9-weighted-random-selector @@ -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, Weight, ...> + ::Build \ No newline at end of file