Beispiel #1
0
        public override void _Ready()
        {
            ca = new CellularAutomata1D();
            AddChild(ca);

            ca.RandomizeCurrentLine();
            ca.Connect(nameof(CellularAutomata1D.ScreenCompleted), this, nameof(SetRandomRule));
        }
Beispiel #2
0
 private void SetRandomRule()
 {
     ca.RandomizeRuleSet();
     ca.RandomizeCurrentLine();
 }