static bool PlayAgain() { Console.WriteLine("Do you want to play again? Y/y for yes OR any other key for no."); string input; input = Console.ReadLine(); bool yesNo = false; if (input == "Y" || input == "y") { yesNo = true; SpaceRaceGame.Reset(); } else { yesNo = false; } return(yesNo); }
}//end DetermineNumberOfPlayers /// <summary> /// The players' tokens are placed on the Start square /// </summary> private void PrepareToPlay() { //Set all conditions to initial // DetermineNumberOfPlayers(); UpdatePlayersGuiLocations(TypeOfGuiUpdate.RemovePlayer); SpaceRaceGame.Reset(); UpdatePlayersGuiLocations(TypeOfGuiUpdate.AddPlayer); UpdatesPlayersDataGridView(); //Enable combobox with reset //Disable roll button with reset //Enable data grid view to be edited with reset comboBox1.Enabled = true; RollButton.Enabled = false; playersDataGridView.Enabled = true; stepOne.Checked = false; stepMulti.Checked = false; }//end PrepareToPlay()