Exemple #1
0
        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));
        }
Exemple #2
0
        public ActionResult Index()
        {
            simonSaysGame.StartGame();

            var simonSaysResult = new SimonSaysModel(simonSaysGame.IsWon, simonSaysGame.GetFlag(),
                                                     false, simonSaysGame.GetColorsToRemember(), simonSaysGame.RoundNumber);

            return(View(simonSaysResult));
        }