Esempio n. 1
0
        public ActionResult PlayAgainComputer()
        {
            List <RockPaperScissorsGame> allGames    = RockPaperScissorsGame.GetAll();
            RockPaperScissorsGame        currentGame = allGames[0];

            currentGame.Computery();
            return(View("Computer", currentGame));
        }
Esempio n. 2
0
        public ActionResult Computer()
        {
            string PlayerOneName          = Request.Form["player-one-computer"];
            string PlayerTwoName          = "Computer";
            RockPaperScissorsGame newGame = new RockPaperScissorsGame(PlayerOneName, PlayerTwoName);

            newGame.Computery();
            return(View(newGame));
        }