Module wave_function_collapse::wave_function
source · Modules
Structs
This is a node in the graph of the wave function. It can be in any of the provided node states, trying to achieve the cooresponding probability, connected to other nodes as described by the node state collections.
This struct represents a relationship between the state of one “original” node to another “neighbor” node, permitting only those node states for the connected neighbor if the original node is in the specific state. This defines the constraints between nodes.
This struct makes for housing convenient utility functions.
This struct represents the uncollapsed definition of nodes and their relationships to other nodes.