public ActionResult PlayAgainComputer() { List <RockPaperScissorsGame> allGames = RockPaperScissorsGame.GetAll(); RockPaperScissorsGame currentGame = allGames[0]; currentGame.Computery(); return(View("Computer", currentGame)); }
public ActionResult Computer() { string PlayerOneName = Request.Form["player-one-computer"]; string PlayerTwoName = "Computer"; RockPaperScissorsGame newGame = new RockPaperScissorsGame(PlayerOneName, PlayerTwoName); newGame.Computery(); return(View(newGame)); }