Пример #1
0
        private void CircularChoose_Click(object sender, RoutedEventArgs e)
        {
            CircularGameType cgt = new CircularGameType();

            cgt.Show();
            Application.Current.MainWindow = null;
            this.Close();
        }
Пример #2
0
        public CircularGameType()
        {
            InitializeComponent();
            main = this;
            CenterWindowOnScreen();
            _col = 10; _row = 10;
            //Create the players based on the user choise

            InitializeThePlayers();

            Game = new CircularGame(new TurnMaker(3), new CircularBoard(36), new Random(), 9, _players, new DiceManager(2));
            turnsLeft.Content = "Turns Left: 3";
            MakeTheGrid(_col, _row);

            gs = new Thread(() =>
            {
                Game.Start();
            });
            gs.Start();
        }