public PartialViewResult Answer(IList <SimonSaysColor> colors) { simonSaysGame.TurnRound(colors); var simonSaysResult = new SimonSaysModel(simonSaysGame.IsWon, simonSaysGame.GetFlag(), false, simonSaysGame.GetColorsToRemember(), simonSaysGame.RoundNumber); return(PartialView("_SimonSaysGame", simonSaysResult)); }
public ActionResult Index() { simonSaysGame.StartGame(); var simonSaysResult = new SimonSaysModel(simonSaysGame.IsWon, simonSaysGame.GetFlag(), false, simonSaysGame.GetColorsToRemember(), simonSaysGame.RoundNumber); return(View(simonSaysResult)); }