public ActionResult PlayAgain() { List <RockPaperScissorsGame> allGames = RockPaperScissorsGame.GetAll(); RockPaperScissorsGame currentGame = allGames[0]; return(View("PlayerOneSelection", currentGame)); }
public ActionResult PlayAgainComputer() { List <RockPaperScissorsGame> allGames = RockPaperScissorsGame.GetAll(); RockPaperScissorsGame currentGame = allGames[0]; currentGame.Computery(); return(View("Computer", currentGame)); }
public ActionResult ComputerResults() { string PlayerOneSelection = Request.Form["player-one-selection-computer"]; List <RockPaperScissorsGame> allGames = RockPaperScissorsGame.GetAll(); RockPaperScissorsGame currentGame = allGames[0]; currentGame.SetPlayerOneChoice(PlayerOneSelection); currentGame.GameResult(); return(View(currentGame)); }
public ActionResult Results() { string PlayerTwoSelection = Request.Form["player-two-selection"]; List <RockPaperScissorsGame> allGames = RockPaperScissorsGame.GetAll(); RockPaperScissorsGame currentGame = allGames[0]; currentGame.SetPlayerTwoChoice(PlayerTwoSelection); currentGame.GameResult(); return(View(currentGame)); }