Go to file
hheik 28f5d3ea1f get_node() now returns Result<Option<&T>> to indicate tiles that are out of bounds. Fixed inconsistent spelling of neighbor -> neighbour 2026-05-05 17:24:24 +03:00
src get_node() now returns Result<Option<&T>> to indicate tiles that are out of bounds. Fixed inconsistent spelling of neighbor -> neighbour 2026-05-05 17:24:24 +03:00
.gitignore Added basic traits 2026-04-23 19:41:24 +03:00
Cargo.lock Added basic traits 2026-04-23 19:41:24 +03:00
Cargo.toml Added basic traits 2026-04-23 19:41:24 +03:00
README.md Added some trait functions 2026-04-24 09:17:15 +03:00

README.md

WFC - Wave Function Collapse

An algorithm for procedural generation of matrices or node graphs, based on a ruleset.

Instead of going with a restrictive ruleset, this implementation allows for rulesets that act dynamically on the state of the graph, allowing more complex rules.

Overview

Few main concepts:

GraphLike

Trait for a struct that holds spatial data

Ruleset

Trait for a ruleset