Beispiel #1
0
        static Trivia()
        {
            Log.Info("Creating Trivia...");

            LockedHints    = new List <string>();
            AvailableHints = new List <string>();

            LockedHints.Add("Blue paint isn't orange.");
            LockedHints.Add("Nintendo wasn't founded in the 20th century.");
            LockedHints.Add("Orange paint isn't white.");
            LockedHints.Add("The Sun is Earth's strongest energy source.");
            LockedHints.Add("White paint isn't green.");
            LockedHints.Add("Gold is a great conductor.");
            LockedHints.Add("Jumping jacks can be fun.");
            LockedHints.Add("RAM stand for Random Access Memory.");
            LockedHints.Add("Computers process information quickly.");
            LockedHints.Add("Tons of information can be found on the World Wide Web.");
            LockedHints.Add("Ohm's law has nothing to do with nuclear reactions.");
            LockedHints.Add("There's no such thing as the Zune Shuffle.");
            LockedHints.Add("Bill Gates was and still is friends with Paul Allen.");
            LockedHints.Add("Isaac Asimov's science fiction writing is cool.");
            LockedHints.Add("IBM != Internet Buying Metacorp.");
            LockedHints.Add("The Sun is Earth's strongest energy source.");

            StandbySet.Add(new Question("What color is red paint?", new List <string> {
                "Red", "Blue", "Orange", "Rainbow"
            }, "Red"));
            StandbySet.Add(new Question("What color is blue paint?", new List <string> {
                "Blue", "Orange", "Red", "It depends..."
            }, "Blue"));
            StandbySet.Add(new Question("What color is orange paint?", new List <string> {
                "Red", "Orange", "Blue", "Purple"
            }, "Orange"));
            StandbySet.Add(new Question("What color is white paint?", new List <string> {
                "White", "Blue", "Green", "Red"
            }, "White"));
            StandbySet.Add(new Question("What color is violet paint?", new List <string> {
                "Violet", "Orange", "Rainbow", "Red"
            }, "Violet"));

#if NETFX_CORE
            ToggleTestingSet();
#else
            CsvFile File = new CsvFile();
            File.Load("Data\\Trivia Questions.csv");
            _questionsToAsk = File
                              .BindAs <BindableFlatQuestion>()
                              .Select(q => q.ToQuestion())
                              .ToList();
#endif
        }