using System.Collections.Generic;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows.Forms;
public List<RootQuestions> QuizQuestions;
public List<RootQuiz> QuizzesList;
private int QuestionNumber;
public int correctQuestions = 0;
public int finalScore = 0;
public void Main(string[] args)
var jsonFile = "https://ArmonsBackend.mrjoecoding.repl.co/";
using (WebClient client = new WebClient())
text = client.DownloadString(jsonFile);
if (String.IsNullOrEmpty(text))
Console.WriteLine("The Quiz list was inaccessable and / or incorrectly formatted!");
this.QuizzesList = JsonConvert.DeserializeObject<List<RootQuiz>>(text);
___ |_______________ ___ ______ _______ ________
__ /| |__ ___/__ __ `__ \_ __ \__ __ \__ ___/
_ ___ |_ / _ / / / / // /_/ /_ / / /_(__ )
/_/ |_|/_/ /_/ /_/ /_/ \____/ /_/ /_/ /____/
_______ ________ ________ _______ _____
___ |___ __ \____ _/ __ __ \____ _____(_)_________________ ________
__ /| |__ /_/ / __ / _ / / /_ / / /__ / ___ /___ /_ _ \__ ___/
_ ___ |_ ____/ __/ / / /_/ / / /_/ / _ / __ /___ /_/ __/_(__ )
/_/ |_|/_/ /___/ \___\_\ \__,_/ /_/ _____/_____/\___/ /____/
Console.WriteLine(title);
Console.WriteLine("Select a Quiz!");
public void OldMain(string[] args)
var jsonFile = "https://ArmonsBackend.mrjoecoding.repl.co/";
using (WebClient client = new WebClient())
text = client.DownloadString(jsonFile);
if (String.IsNullOrEmpty(text))
Console.WriteLine("The Quiz list was inaccessable and / or incorrectly formatted!");
this.QuizQuestions = JsonConvert.DeserializeObject<List<RootQuestions>>(text);
private void loadQuestion()
Console.WriteLine("Question " + (QuestionNumber + 1));
Console.WriteLine("Your Current Score is: " + finalScore);
Console.WriteLine(QuizQuestions[QuestionNumber].Question.question);
if (Console.ReadLine().ToUpper() == QuizQuestions[QuestionNumber].Question.correctAnswer)
Console.WriteLine("Correct!");
Console.WriteLine("Incorrect :(");
if ((QuestionNumber + 1) == QuizQuestions.Count)
ResultsScreen(correctQuestions, QuestionNumber + 1, finalScore);
private void loadQuizzes()
Console.WriteLine("Please print quiz name below");
Console.WriteLine(_quiz.name);
public void ResultsScreen(int correctAnswers, int numberOfQuestions, int finalScore)
RRRRRRRRRRRRRRRRR lllllll tttt
R::::::::::::::::R l:::::l ttt:::t
R::::::RRRRRR:::::R l:::::l t:::::t
RR:::::R R:::::R l:::::l t:::::t
R::::R R:::::R eeeeeeeeeeee ssssssssss uuuuuu uuuuuu l::::lttttttt:::::ttttttt ssssssssss
R::::R R:::::R ee::::::::::::ee ss::::::::::s u::::u u::::u l::::lt:::::::::::::::::t ss::::::::::s
R::::RRRRRR:::::R e::::::eeeee:::::eess:::::::::::::s u::::u u::::u l::::lt:::::::::::::::::t ss:::::::::::::s
R:::::::::::::RR e::::::e e:::::es::::::ssss:::::su::::u u::::u l::::ltttttt:::::::tttttt s::::::ssss:::::s
R::::RRRRRR:::::R e:::::::eeeee::::::e s:::::s ssssss u::::u u::::u l::::l t:::::t s:::::s ssssss
R::::R R:::::Re:::::::::::::::::e s::::::s u::::u u::::u l::::l t:::::t s::::::s
R::::R R:::::Re::::::eeeeeeeeeee s::::::s u::::u u::::u l::::l t:::::t s::::::s
R::::R R:::::Re:::::::e ssssss s:::::s u:::::uuuu:::::u l::::l t:::::t ttttttssssss s:::::s
RR:::::R R:::::Re::::::::e s:::::ssss::::::su:::::::::::::::uul::::::l t::::::tttt:::::ts:::::ssss::::::s
R::::::R R:::::R e::::::::eeeeeeee s::::::::::::::s u:::::::::::::::ul::::::l tt::::::::::::::ts::::::::::::::s
R::::::R R:::::R ee:::::::::::::e s:::::::::::ss uu::::::::uu:::ul::::::l tt:::::::::::tt s:::::::::::ss
RRRRRRRR RRRRRRR eeeeeeeeeeeeee sssssssssss uuuuuuuu uuuullllllll ttttttttttt sssssssssss
Console.WriteLine(title);
if (correctAnswers == numberOfQuestions)
Console.WriteLine("You achieved a perfect score! 100%! Amazing!");
Console.WriteLine("You Answered " + correctAnswers + " questions correct and " + (numberOfQuestions - correctAnswers) + " questions incorrect!");
Console.WriteLine("You achieved a final score of " + finalScore + "!");
Console.WriteLine("Your Score could also be written as a percentage! " + (((double)correctAnswers / (double)numberOfQuestions) * 100).ToString() + "%!");
Console.WriteLine("Great Job!");
else if (finalScore < 0.5)
Console.WriteLine("You Answered " + correctAnswers + " questions correct and " + (numberOfQuestions - correctAnswers) + " questions incorrect!");
Console.WriteLine("You achieved a final score of " + finalScore + "!");
Console.WriteLine("Your Score could also be written as a percentage! " + (((double)correctAnswers / (double)numberOfQuestions) * 100).ToString() + "%!");
Console.WriteLine("Well... What can I say... :*( Better luck next time!");
Console.WriteLine("This code is probably redundant, but in the odd case you are seeing this");
Console.WriteLine("there is bug in my code :( Contact me on Discord with a screenshot (ImpossiblePlayz#6969)");
public string description
public string correctAnswer
public class RootQuestions