Wave function collapse: Difference between revisions

m
→‎{{header|C}}: cleanup from debugging
(C)
m (→‎{{header|C}}: cleanup from debugging)
Line 6:
 
=={{header|C}}==
{{trans|J}}<lang C>#include <assertstdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Line 108 ⟶ 107:
char t=
wave[(i*td0)+j]=
allow[ td0*R[adj[K ]]+j] *&
allow[ stride +td0*R[adj[K+1]]+j] *&
allow[(2*stride)+td0*R[adj[K+2]]+j] *&
allow[(3*stride)+td0*R[adj[K+3]]+j];
entropy[i]+= t;
6,962

edits