Anonymous user
Conway's Game of Life: Difference between revisions
m
→{{header|Elena}}
imported>Arakov |
|||
Line 5,588:
=={{header|Elena}}==
ELENA
<syntaxhighlight lang="elena">import extensions;
import system'threading;
import system'text;
import cellular;
Line 5,600 ⟶ 5,601:
sealed class Model
{
▲ }
▲ private onUpdate()
{▼
▲ OnUpdate.?(theSpace)
}
singleton gameOfLifeRuleSet : RuleSet
{
int proceed(Space s, int x, int y
}
public extension presenterOp : Space
{
auto
for(int i
for(int j := 0, j < columns,
int
line.write((cell == 0).iif(" ","o"));
console.writeLine(line.Value)
}
|