コード例 #1
0
ファイル: GameUI.cs プロジェクト: AlohaGodfrey/C0453-Part-B
        private void getComputerChoice()
        {
            RPS_Game.GetComputerChoice();

            if (RPS_Game.ComputerChoice == RPS_Game.PAPER)
            {
                computerPictureBox.Image = global::CO453_Part_B.Properties.Resources.Paper;
            }

            else if (RPS_Game.ComputerChoice == RPS_Game.STONE)
            {
                computerPictureBox.Image = global::CO453_Part_B.Properties.Resources.Rock;
            }

            else if (RPS_Game.ComputerChoice == RPS_Game.SCISSORS)
            {
                computerPictureBox.Image = global::CO453_Part_B.Properties.Resources.Scissors;
            }

            RPS_Game.WorkoutWinner();
            showWinner();
        }
コード例 #2
0
ファイル: GameUI.cs プロジェクト: AlohaGodfrey/C0453-Part-B
 public GameUI()
 {
     InitializeComponent();
     //RPS_Game game = new RPS_Game();
     RPS_Game.Start();
 }