Esempio n. 1
0
        private void BtnStartGame_Click(object sender, EventArgs e)
        {
            GetAndSet gs = new GetAndSet();

            gs.SetAmmoStartGame();
            gs.SetPointNewGame();
            gs.GetChoosedScore();
        }
Esempio n. 2
0
        public void PointsCount()
        {
            var nPoint = gs.GetNpcPoints();
            var pPoint = gs.GetPlayerPoints();

            var choosedScore = gs.GetChoosedScore();

            if (nPoint == choosedScore)
            {
                NpcWin win = new NpcWin();
                win.Show();
                gs.StartNewGame();
            }
            if (pPoint == choosedScore)
            {
                PlayerWin win = new PlayerWin();
                win.Show();
                gs.StartNewGame();
            }
        }