示例#1
0
        private void shootaway_btn_Click(object sender, EventArgs e)
        {
            // below code is for clearing all the data for opening new game.
            russian rus = new russian();

            rus.Show();
            this.Close();
            // below code helps to show the image
            Shoot_picbox.Visible = true;
            Image img = Image.FromFile(@"C:\Users\hp\source\repos\Rouelette\Rouelette\resource\try.jpg");

            Shoot_picbox.Image = img;
            Play tryObj = new Play();

            tryObj.Tryagain();
        }
示例#2
0
        public void Spin()
        {
            russian spin = new russian();

            Assert.AreEqual(6, spin.Spin_chamber(5));
        }