Wave function collapse: Difference between revisions

m
(Created Nim solution.)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 1,016:
=={{header|Wren}}==
{{trans|C}}
The following is a translation of histhe C version ''before'' macros were added. Wren doesn't support macros and, whilst I could use functions instead, I decided on efficiency grounds to leave it as it is.
Well, I don't know whether this task is going to be deleted or not though, given the effort Rdm has put into understanding it, I'd be in favor now of letting it stand. It is after all an interesting application of an algorithm inspired by quantum mechanics to generating images.
<syntaxhighlight lang="ecmascriptwren">import "random" for Random
 
The following is a translation of his C version before macros were added. Wren doesn't support macros and, whilst I could use functions instead, I decided on efficiency grounds to leave it as it is.
<syntaxhighlight lang="ecmascript">import "random" for Random
 
var rand = Random.new()
9,476

edits