Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp4
- {
- class Program
- {
- static string[] categories = new string[36];
- static int[] categoryValues = new int[36];
- static string[] questions = new string[90];
- static string[] answers = new string[90];
- static string[,] board = new string[6, 6];
- static string inputChoose;
- static string inputAnswer;
- static string answer;
- static string question;
- static int questionIndex;
- static void Main(string[] args)
- {
- int endGame = 0;
- int currentPoints = 0;
- Q_A();
- PointValues();
- bool pass = true;
- Console.WriteLine("Welcome to jeopardy, would you like to play? Type 'yes' or 'no'");
- string startGame = Console.ReadLine();
- if (startGame == "yes")
- {
- Console.WriteLine("Remember, you must answer with 'what is <answer>' in order to get it right. \nYou must also answer everything in LOWER CASE! \nPress enter to start.");
- Console.ReadLine();
- Console.Clear();
- Console.WriteLine("Great, let's start. Here's the board with the following categories\n");
- StartBoard();
- while (pass == true)
- {
- Console.WriteLine("\nPick a category and value");
- inputChoose = Console.ReadLine();
- for (int x = 0; x < 36; x++)
- {
- if (inputChoose == categories[x])
- {
- questionIndex = x;
- categories[x] = "_______";
- answer = answers[x];
- question = questions[x];
- Console.WriteLine(question);
- inputAnswer = Console.ReadLine();
- endGame++;
- }
- }
- Console.Clear();
- int count = 0;
- for (int x = 0; x < board.GetLength(0); x++)
- {
- for (int y = 0; y < board.GetLength(1); y++)
- {
- Console.Write(categories[count]);
- count++;
- if (y < board.GetLength(1) - 1)
- {
- Console.Write(" | ");
- }
- }
- Console.WriteLine();
- }
- if (inputAnswer == answer)
- {
- currentPoints += categoryValues[questionIndex];
- Console.WriteLine($"\nCorrect, you now have {currentPoints} points\nPress enter to continue");
- Console.ReadLine();
- }
- else
- {
- Console.WriteLine($"\nThat's wrong, you still have {currentPoints} points\nPress enter to continue");
- Console.ReadLine();
- }
- if (endGame == 30)
- {
- Console.Clear();
- Console.WriteLine($"\nThanks for playing! You scored {currentPoints}/9000 points!\nPress enter to exit.");
- Console.ReadLine();
- pass = false;
- }
- }
- }
- }
- static void Q_A()
- {
- for (int i = 0; i < 36; i++)
- {
- //pokemon
- questions[6] = "This pokemon has the pokeindex of #001"; //bulbasaur
- questions[12] = "This pokemon was the original starter pokemon for Ash Ketchum"; //pikachu
- questions[18] = "This many pokemon are in the gen 1 pokedex once it's filled out"; //151
- questions[24] = "The pokemon you get from the Old Amber fossil in gen 1"; //aerodactyl
- questions[30] = "This many pokemon naturally learn the move 'Hyper Beam' as they level up"; //6, gyarados, aerodactyl, snorlax, dratini, dragonair, dragonite.
- //friends
- questions[7] = "This is the last name of the two main characters that are siblings"; //geller
- questions[13] = "This is the phrase the name of the episodes almost always start with"; //the one
- questions[19] = "This many times did Ross get divorced"; //3
- questions[25] = "This is Chandler Bing's middle name"; //muriel
- questions[31] = "This city is where Rachel went on Ross and Emily's honeymoon"; //athens
- //videogames
- questions[8] = "This company is the creator of Minecraft";//mojang
- questions[14] = "This game is where all the 12 year olds go to get victory royales";//fortnite
- questions[20] = "This many main story 'The Sims' games have been made";//4
- questions[26] = "In this type of game, 10 players team up in a 5v5 game, with three lanes and a jungle filled with monsters";//Magnavox Odyssey
- questions[32] = "This is the current Any% speedrun world record of Super Mario Bros (in mm:ss)";//04:55
- //capitals
- questions[9] = "The capital of Denmark"; //Copenhagen
- questions[15] = "The capital of Norway"; //Oslo
- questions[21] = "The capital of Australia"; //Canberra
- questions[27] = "The capital of Belarus"; //Minsk
- questions[33] = "The capital of Slovenia"; //Ljubljana
- //coding
- questions[10] = "This variable is a number that ranges from 0 to 255"; //byte
- questions[16] = "This variable is a variable that can contain a sentence (lots of characters)"; //string
- questions[22] = "Something that runs a certain amount of time, specified by either 'for' or 'while'"; //loop
- questions[28] = "A variable that holds an amount of values, associated with a key"; //array
- questions[34] = "A function you should never use"; //goto
- //movies
- questions[11] = "Katniss Everdeen is an expert ranger in this movie series";//The Hunger Games
- questions[17] = "A Tragic romace by Shakespear originally from 1595, made to film in 1996"; //Romeo and Juliet
- questions[23] = "This is the name of the actor playing 'Harry Potter'";//Daniel Radcliffe
- questions[29] = "This movie has the highest rating on IMDB"; //The Shawshank Redemption (9,2)
- questions[35] = "This many Marvel Cinematic Universe films have been made"; //23
- //pokemon
- answers[6] = "what is bulbasaur";
- answers[12] = "what is pikachu";
- answers[18] = "what is 151";
- answers[24] = "what is aerodactyl";
- answers[30] = "what is 6"; //gyarados, aerodactyl, snorlax, dratini, dragonair, dragonite";
- //friends
- answers[7] = "what is geller";
- answers[13] = "what is the one";
- answers[19] = "what is 3";
- answers[25] = "what is muriel";
- answers[31] = "what is athens";
- //videogames
- answers[8] = "what is mojang";//mojang
- answers[14] = "what is fortnite";//fortnite
- answers[20] = "what is 4";//4
- answers[26] = "what is moba";//moba
- answers[32] = "what is 04:55";//04:55
- //capitals
- answers[9] = "what is copenhagen"; //Copenhagen
- answers[15] = "what is oslo"; //Oslo
- answers[21] = "what is canberra"; //Canberra
- answers[27] = "what is minsk"; //Minsk
- answers[33] = "what is ljubljana"; //
- //coding
- answers[10] = "what is byte"; //byte
- answers[16] = "what is string"; //string
- answers[22] = "what is loop"; //loop
- answers[28] = "what is array"; //array
- answers[34] = "what is goto"; //goto
- //movies
- answers[11] = "what is the hunger games";//The Hunger Games
- answers[17] = "what is romeo and juliet"; //Romeo and Juliet
- answers[23] = "what is daniel radcliffe";//Daniel Radcliffe
- answers[29] = "what is the shawshank redemption"; //The Shawshank Redemption (9,2)
- answers[35] = "what is 23"; //23
- }
- }
- static void StartBoard()
- {
- Console.Clear();
- PointValues();
- for (int i = 0; i < 36; i++)
- {
- categories[0] = "Pokemon";
- categories[1] = "Friends";
- categories[2] = "Gaming ";
- categories[3] = "Capital";
- categories[4] = "Coding ";
- categories[5] = "Movies ";
- categories[6] = "poke100";
- categories[7] = "frie100";
- categories[8] = "game100";
- categories[9] = "capi100";
- categories[10] = "code100";
- categories[11] = "movi100";
- categories[12] = "poke200";
- categories[13] = "frie200";
- categories[14] = "game200";
- categories[15] = "capi200";
- categories[16] = "code200";
- categories[17] = "movi200";
- categories[18] = "poke300";
- categories[19] = "frie300";
- categories[20] = "game300";
- categories[21] = "capi300";
- categories[22] = "code300";
- categories[23] = "movi300";
- categories[24] = "poke400";
- categories[25] = "frie400";
- categories[26] = "game400";
- categories[27] = "capi400";
- categories[28] = "code400";
- categories[29] = "movi400";
- categories[30] = "poke500";
- categories[31] = "frie500";
- categories[32] = "game500";
- categories[33] = "capi500";
- categories[34] = "code500";
- categories[35] = "movi500";
- }
- int count = 0;
- for (int x = 0; x < board.GetLength(0); x++)
- {
- for (int y = 0; y < board.GetLength(1); y++)
- {
- Console.Write(categories[count]);
- count++;
- if (y < board.GetLength(1) - 1)
- {
- Console.Write(" | ");
- }
- }
- Console.WriteLine();
- }
- }
- static void PointValues()
- {
- categoryValues[0] = 0;
- categoryValues[1] = 0;
- categoryValues[2] = 0;
- categoryValues[3] = 0;
- categoryValues[4] = 0;
- categoryValues[5] = 0;
- categoryValues[6] = 100;
- categoryValues[7] = 100;
- categoryValues[8] = 100;
- categoryValues[9] = 100;
- categoryValues[10] = 100;
- categoryValues[11] = 100;
- categoryValues[12] = 200;
- categoryValues[13] = 200;
- categoryValues[14] = 200;
- categoryValues[15] = 200;
- categoryValues[16] = 200;
- categoryValues[17] = 200;
- categoryValues[18] = 300;
- categoryValues[19] = 300;
- categoryValues[20] = 300;
- categoryValues[21] = 300;
- categoryValues[22] = 300;
- categoryValues[23] = 300;
- categoryValues[24] = 400;
- categoryValues[25] = 400;
- categoryValues[26] = 400;
- categoryValues[27] = 400;
- categoryValues[28] = 400;
- categoryValues[29] = 400;
- categoryValues[30] = 500;
- categoryValues[31] = 500;
- categoryValues[32] = 500;
- categoryValues[33] = 500;
- categoryValues[34] = 500;
- categoryValues[35] = 500;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement