Пример #1
0
        public IActionResult OnPost()
        {
            if (!hg.data.Tried.Contains(Guess))
            {
                hg.data.Tried.Add(Guess);
            }

            redirect = hg.Guess(hg, Guess, guessed, index);
            hg.Save();
            if (redirect == true)
            {
                return(RedirectToPage("FinalPage"));
            }
            else
            {
                return(RedirectToPage("GamePage"));
            }
        }
Пример #2
0
 public IActionResult OnPost()
 {
     hg.Save();
     return(RedirectToPage("GamePage"));
 }
Пример #3
0
 public IActionResult OnPost()
 {
     hg.NewGame();
     hg.Save();
     return(RedirectToPage("Index"));
 }