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")); } }
public IActionResult OnPost() { hg.Save(); return(RedirectToPage("GamePage")); }
public IActionResult OnPost() { hg.NewGame(); hg.Save(); return(RedirectToPage("Index")); }