private void CorrectForAnswerD(string userGuessOneNineties, PlayerPoints pScore90s, List <string> questions, string correctLetter) { switch (userGuessOneNineties.ToUpper()) { case "A": if (userGuessOneNineties != correctLetter) { Console.WriteLine(questions[0]); pScore90s.PlayerScore -= 100; Console.Beep(); Console.Beep(); Console.Beep(); Console.Beep(); } break; case "B": if (userGuessOneNineties != correctLetter) { Console.WriteLine(questions[1]); pScore90s.PlayerScore -= 100; Console.Beep(); Console.Beep(); Console.Beep(); Console.Beep(); } break; case "C": if (userGuessOneNineties == correctLetter) { Console.WriteLine(questions[2]); pScore90s.PlayerScore -= 100; Console.Beep(); Console.Beep(); Console.Beep(); Console.Beep(); } break; case "D": if (userGuessOneNineties.ToUpper() == correctLetter) { Console.WriteLine(questions[3]); pScore90s.PlayerScore += 200; Console.Beep(); } break; default: Console.WriteLine("You lose 150 points for not paying attention to what buttons you are pressing!!!\n" + "Press any key to see your points total and to continue"); pScore90s.PlayerScore -= 150; break; } }
private void GiveMeAQuestionForAnswerD(string MainQuestion, int guessLimit, PlayerPoints pScore90s, List <string> questions, string correctLetter) { Console.Clear(); if (guessCount < guessLimit) { Console.WriteLine(MainQuestion); userGuessOneNineties = Console.ReadLine(); CorrectForAnswerD(userGuessOneNineties, pScore90s, questions, correctLetter); } Console.ReadKey(); Console.WriteLine($"You current score is {pScore90s.PlayerScore} points!"); Console.WriteLine("Press any key to advance to the next question."); Console.ReadKey(); Console.Clear(); }
public void RunHistory(PlayerPoints pScore90s) { Console.Clear(); Console.WriteLine("\t\t\tYou are now playing the History Trivia Game!! Goodluck!\n" + "\t\t\tPlease carefully select your answers. An invalid character\n" + "\t\t\twill result in an extra deduction of points!!\n" + "\t\t\t\tpress any key to start!"); Console.ReadKey(); bool isRunningHistory = true; while (isRunningHistory) { //Question One GiveMeAQuestionForAnswerB("Question 1:\n" + "\tWhat President was responsible for Watergate\n" + "\ta. Ronald Reagan\n" + "\tb. Richard Nixon\n" + "\tc. Bill Clinton\n" + "\td. George Washington", 1, pScore90s, new List <string> { "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question", "That was correct!! You earn 200 points!\n" + "Press any key to see your current points and to continue to the next question", "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question" }, "B"); GiveMeAQuestionForAnswerC("Question 2:\n" + "\tWhat country helped during the revolutionary war?\n" + "\ta. Great Britain\n" + "\tb. Spain\n" + "\tc. France\n" + "\td. All of the above", 1, pScore90s, new List <string> { "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question", "That was correct!! You earn 200 points!\n" + "Press any key to see your current points and to continue to the next question", "Wrong Answer, you lose 100 points!\n" + "Press any key to see your current points and to continue to the next question" }, "C"); GiveMeAQuestionForAnswerB("Question 3:\n" + "\tWhen was the declaration of independence signed?\n" + "\ta. 1783\n" + "\tb. 1776\n" + "\tc. 1801\n" + "\td. 1925", 1, pScore90s, new List <string> { "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Correct Answer, You earned 200 points!.. I would be disapppointed if you got this wrong!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question" }, "B"); GiveMeAQuestionForAnswerD("Question 4:\n" + "\tWho was the 2nd President of the United States?\n" + "\ta. Thomas Jefferson\n" + "\tb. Teddy Rosevelt\n" + "\tc. Thomas Edison\n" + "\td. John Adams", 1, pScore90s, new List <string> { "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Correct Answer! You earned 200 points!\n" + "Press any key to see your current points and to continue to the next question" }, "D"); GiveMeAQuestionForAnswerB("Question 5:\n" + "\tWho did we overthrow in order to win to the Revolutionary War?\n" + "\ta. Marie Antoineete\n" + "\tb. King George III\n" + "\tc. Queen Elizabeth\n" + "\td. Alexander The Great", 1, pScore90s, new List <string> { "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Correct Answer! You earned 200 points!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question", "Incorrect Answer! You lost 100 points!\n" + "Press any key to see your current points and to continue to the next question" }, "B"); Run(); } }
public void RunNinetiesPopCulture(PlayerPoints pScore90s) { // Plan to add a secret trivia section where if playerScore equals a certain score it will activate another round of tougher questions // // // // // // Console.Clear(); Console.WriteLine("\t\t\t\t\tWelcome to the 90's Pop Culture Game!\n" + "\t\t\t\tPlease carefully select your answers.An invalid character\n" + "\t\t\t\twill result in an extra deduction of points!!"); Console.ReadKey(); Console.Clear(); bool isRunning = true; while (isRunning) { //Use the give me a question helper method, in the paramaters the synatax is "Our Question, the number of guesses allowed "1", //the playerScore, a new List<string> { "The responses to the users input" } , and finally the correct answer to the Question. Each response needs a comma // the correct answer at the end of our syntax is typed out as " A " or whatever the correct letter is. pulls from the switch cases we typed GiveMeAQuestionForAnswerB("Question 1:\n" + "How did Jennifer Lopez make her acting debut into the pop culture scene?\n" + "\ta. The George Lopez Show\n" + "\tb. Selena\n" + "\tc. Orange is the New Black\n" + "\td. Sister Sister", 1, pScore90s, new List <string> { "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue ", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue" }, "B"); // Console.ReadKey(); // GiveMeAQuestionForAnswerB("Question 2:\n" + "Complete the line.. \"Saved by the ____ \"\n" + "a. Alarm\n" + "b. Bell\n" + "c. Book\n" + "d. Club", 1, pScore90s, new List <string> { "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue\n", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue" }, "B"); // // GiveMeAQuestionForAnswerC("Question 3:\n" + "In what city did Kevin McCallister get lost?\n" + "a. Chicago\n" + "b. Los Angeles\n" + "c. New York\n" + "d. Omaha", 1, pScore90s, new List <string> { "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue\n", "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue \n", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue\n" }, "C"); //Console.ReadKey(); GiveMeAQuestionForAnswerA("Question 4:\n" + "Which one of these people played in both The Titanic AND Misery?\n" + "a. Kathy Bates\n" + "b. Halle Berry\n" + "c. Kate Winslet\n" + "d. Stephen King", 1, pScore90s, new List <string> { "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue ", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue" }, "A"); GiveMeAQuestionForAnswerB("Question 5:\n" + "Who was the lead singer for N'Sync?\n" + "a. Nick Carter\n" + "b. Justin Timberlake\n" + "c. Lance bass\n" + "d. Stephen King", 1, pScore90s, new List <string> { "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue" }, "B"); GiveMeAQuestionForAnswerA("Question 6: \n" + "Which Late Night Show host has the biggest car collection?\n" + "a. Jay Leno\n" + "b. David Letterman\n" + "c. Arseniol Hall\n" + "d. Conan O'Brien", 1, pScore90s, new List <string> { "Nice!! You just earned 200 points!! :)\n" + "Press any key to see your points total and to continue ", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue", "Sorry, That was incorrect! You lose 100 points! :( \n" + "Press any key to see your points total and to continue" }, "A"); Run(); } }
public void RunCinema(PlayerPoints pScore90s) { Console.Clear(); Console.WriteLine("\t\t\t\t\t\tWelcome to the Cinema Game!\n" + "\t\t\t\tPlease carefully select your answers. An invalid character\n" + "\t\t\t\t\twill result in an extra deduction of points!!\n" + "Press any key to start the game!"); Console.ReadKey(); Console.Clear(); int guessCountCinema = 0; int guessLimitCinema = 1; string userGuessOneCinema = ""; string userGuessTwoCinema = ""; string userGuessThreeCinema = ""; string userGuessFourCinema = ""; string userGuessFiveCinema = ""; bool isRunningCinema = true; while (isRunningCinema) { GiveMeAQuestionForAnswerC("Question 1:\n" + "\tWho was the Main Character of The NoteBook?\n" + "\ta. Leonardo DiCaprio\n" + "\tb. Jake Gyllenhaal\n" + "\tc. Ryan Gosling\n" + "\td. Brad Pitt\n", 1, pScore90s, new List <string> { "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "That was correct!! You earn 200 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue" }, "C"); GiveMeAQuestionForAnswerB("Question 2:\n" + "\tWho was the director of Pulp Fiction?\n" + "\ta. James Cameron\n" + "\tb. Quentin Tarantino\n" + "\tc. Aaron Sorkin\n" + "\td. M.Night Shyamalan", 1, pScore90s, new List <string> { "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "That was correct!! You earn 200 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue" }, "B"); GiveMeAQuestionForAnswerD("Question 3:\n" + "\tWhich of the following movies is based on a true story?\n" + "\ta. The curious case of Benjamin Button\n" + "\tb. Shawshank Redemption\n" + "\tc.Star Wars\n" + "\td. One Night in Miami", 1, pScore90s, new List <string> { "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "That was correct!! You earn 200 points!\n" + "Press any key to see your points total and to continue" }, "D"); GiveMeAQuestionForAnswerD("Question 4:\n" + "\tIn 2017, who won the Oscar for Best Female Lead?\n" + "\ta. Meryl Streep\n" + "\tb. Sandra Bullock\n" + "\tc. Anna Faris\n" + "\td. Emma Stone", 1, pScore90s, new List <string> { "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "That was correct!! You earn 200 points!\n" + "Press any key to see your points total and to continue" }, "D"); GiveMeAQuestionForAnswerA("Question 5:\n" + "\tWhich of these peope hold an EGOT(Emmy, Grammy, Oscar, and Tony\n" + "\ta. John Legend\n" + "\tb. Clint Eastwood\n" + "\tc. Matt Damon\n" + "\td. Beyonce", 1, pScore90s, new List <string> { "That was correct!! You earn 200 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue", "Wrong Answer, you lost 100 points!\n" + "Press any key to see your points total and to continue" }, "A"); Run(); } }