wave function collapse algorithm
some features at a glance...
Below is a sample which shows a possible use for wfc:
//easily define the shape (2D or 3D is supported)
LGraph := TGraph.Create.Reshape({width} 5, {height} 5, {depth} 1);
(*
constraints are also very easy to add and the interface provide fluent setters.
in this case A's & B's can be present in "any direction" on the graph (north, east, up, down, etc...)
*)
LGraph.AddValue('A')
.NewRule(AllDirections, ['A', 'B']);
(*
but here, we constrain to just a few directions
A or B (N & S) of a "C"
*)
LGraph.AddValue('C')
.NewRule([gdNorth, gdSouth], ['A', 'B']);
(*
when you're finished defining constraints and all of the
possible values (states), then just run and the result can be
persisted or you can access the completed graph directly
*)
LGraph.Run();
git clone --recursive
git submodule update --init --recursive
Toolbar -> Project\Project Options\Paths
you can copy the other units
text to include in your own project.\src
path to your project other units
Tip Jar