Wave function collapse: Difference between revisions
→{{header|J}}: use local names for intermediate results in wfc
m (→{{header|J}}) |
(→{{header|J}}: use local names for intermediate results in wfc) |
||
Line 10:
wfc=: {{
M=. #.,"2 tiles
opts=
adj=
horz=
vert=
id=
north=
south=
west=
east=
allow=
i=
while. #todo=
wave=
entropy=
min=. <./ E=
if. 0=min do. EMPTY return. end.
ndx=
i=
end.
,/"2,/0 2 1 3|:(y$i){m
|