Wave function collapse: Difference between revisions

Content added Content deleted
(mention failures)
mNo edit summary
Line 22: Line 22:
<table><tr><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr><tr><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr><tr><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr></table>
<table><tr><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr><tr><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr><tr><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td><td style="background-color: black; height: 20px; width: 20px">&nbsp;</td><td style="background-color: white; height: 20px; width: 20px">&nbsp;</td></tr></table>
</td></tr></table>
</td></tr></table>



Note that this algorithm sometimes does not succeed. If an unassigned grid location has an entropy of 0, the algorithm fails and returns an empty or null result. We'll ignore those failure cases for this task.
Note that this algorithm sometimes does not succeed. If an unassigned grid location has an entropy of 0, the algorithm fails and returns an empty or null result. We'll ignore those failure cases for this task.