# mxgmn/WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics

Repository: https://github.com/mxgmn/WaveFunctionCollapse
Canonical: https://ross.abutalabs.com/products/wavefunctioncollapse
Language: C#
License: NOASSERTION
License Family: other
Topics: procedural-generation, machine-learning, gamedev, algorithm, csharp, wfc
Last push: 2026-03-22T01:25:44+00:00

## Health v2 (maintenance only)
Score: 55/100 (v2, computed 2026-09-07T02:58:08.109385+00:00)
- activity 72, release rhythm 8, longevity 100
- inputs: {"age_days": 3628, "days_push": 169, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 25305, forks 1353 (observed 2026-09-06T21:21:05.425094+00:00)

## What it is
A C# implementation of the Wave Function Collapse algorithm that generates bitmaps and tilemaps locally similar to a single example input, using an observation-propagation cycle inspired by quantum mechanics. It is the reference implementation that has been ported to many other languages.

## Use cases
- generate tilemaps from a single example tileset
- procedurally generate textures for a game
- create pixel art variations from one sample image
- generate dungeon or level layouts procedurally
- learn how the wave function collapse algorithm works

## When to choose
- you need procedural bitmap or tilemap generation constrained to patterns from a sample
- you want the canonical reference implementation of WFC
- you are building a game that needs locally-similar generated content

## When to avoid
- you need guaranteed contradiction-free generation with high performance
- you need true quantum computing or actual quantum mechanics simulation
- you need a non-C# implementation without porting

## Facets
- artifact type: library
- maturity: stable
- function: graphics, simulation, data-generation, image-processing
- domain: graphics, machine-learning
- platform: cross-platform, dotnet, c
- tags: procedural-generation, wave-function-collapse, tilemap-generation, constraint-solving, gamedev, game-development, algorithms

## Member repositories
- mxgmn/WaveFunctionCollapse (main) score 55

## Provenance
- Observed fields: from GitHub, fetched 2026-09-06T21:21:05.425094+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:56:04.503437+00:00, confidence not recorded.
  - readme: https://github.com/mxgmn/WaveFunctionCollapse (fetched 2026-09-06T21:21:05.425094+00:00, sha 878d8b2f4b30)
- Data as of 2026-09-07T08:21:23.190159+00:00.
