bb4 / bb4-simulations

A collection of java simulations. Examples include reaction diffusion, fractals, henon phase exploration, snakes, dice, and fluid flow.
MIT License
5 stars 2 forks source link

WFC: Avoid inconsistency by allowing some inconsistent patterns with low probability #28

Closed barrybecker4 closed 3 years ago

barrybecker4 commented 3 years ago

Currently, only 100% consistent adjacencies are allowed. I speculate that if we allow some inconsistent patterns with very low probability, then we will be far less likely to encounter problems where the algorithm cannot continue because it reaches an inconsistency.

barrybecker4 commented 3 years ago

I solved this in the ban function by never eliminating the final option.