Esempio n. 1
0
        private void Start_Click(object sender, RoutedEventArgs e)
        {
            GameLogic game  = new GameLogic();
            Window9   task1 = new Window9();

            game.kset(Convert.ToInt32(KTextBox.Text));
            game.aset(game.kget());
            game.nset(Convert.ToInt32(NTextBox.Text));
            game.firstTurnset(Convert.ToBoolean(AITurn.IsChecked));
            if (game.firstTurnget())
            {
                game.aiTurn();
            }
            task1.Show();
            this.Hide();
        }
Esempio n. 2
0
        private void Helsinki_Click(object sender, RoutedEventArgs e)
        {
            Window9 sääTiedot9 = new Window9();

            sääTiedot9.Show();
        }