Exemple #1
0
        public LifelikeWindow()
        {
            InitializeComponent();
            _fitnessButtons = new Button[] {
                btnSkip,
                //btnSuperBad,
                btnBad,
                btnOkay,
                btnGood,
               // btnSuperGood
            };
            _genAlg = new GeneticAlgorithmState();
            ctrlCellularAutomata.CellularAutomataSettings = _genAlg.CaSettings;
            ctrlCellularAutomataSettings.Settings = _genAlg.CaSettings;
            ctrlGeneticAlgorithmSettings.Settings = _genAlg.GaSettings;

            ctrlCellularAutomata.CaRulesChanged += ctrlCellularAutomata_CaRulesChanged;
            ctrlCellularAutomataSettings.SettingsChanged += ctrlCellularAutomataSettings_SettingsChanged;
        }
Exemple #2
0
        public LifelikeWindow()
        {
            InitializeComponent();
            _fitnessButtons = new Button[] {
                btnSkip,
                //btnSuperBad,
                btnBad,
                btnOkay,
                btnGood,
                // btnSuperGood
            };
            _genAlg = new GeneticAlgorithmState();
            ctrlCellularAutomata.CellularAutomataSettings = _genAlg.CaSettings;
            ctrlCellularAutomataSettings.Settings         = _genAlg.CaSettings;
            ctrlGeneticAlgorithmSettings.Settings         = _genAlg.GaSettings;

            ctrlCellularAutomata.CaRulesChanged          += ctrlCellularAutomata_CaRulesChanged;
            ctrlCellularAutomataSettings.SettingsChanged += ctrlCellularAutomataSettings_SettingsChanged;
        }