コード例 #1
0
ファイル: LifelikeWindow.cs プロジェクト: jwezorek/Lifelike
        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;
        }
コード例 #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;
        }