Beispiel #1
0
        /// <summary>
        /// GameManager constructor
        /// </summary>
        /// <param name="mw">MainWindow object</param>
        public GameManager(MainWindow mw)
        {
            this.mw = mw;
            InitBoard();
            Board.AleaInit();
            isThreadPaused  = false;
            IsSimulationRun = false;

            IterationInterval = 100;

            Binding binding = new Binding("StatsToString");

            binding.Source = Board.BoardStatistics;
            mw.txtStats.SetBinding(TextBlock.TextProperty, binding);
        }