Exemple #1
0
        public static MysteryWord Generate()
        {
            // randomId should be in Range(1,25);
            MysteryWord matrix1  = new MysteryWord("matrix");
            MysteryWord matri2   = new MysteryWord("peekaboo");
            MysteryWord matrx3   = new MysteryWord("galvanize");
            MysteryWord matix4   = new MysteryWord("fuchsia");
            MysteryWord marix5   = new MysteryWord("buzzwords");
            MysteryWord mtrix6   = new MysteryWord("psyche");
            MysteryWord atrix7   = new MysteryWord("revolutions");
            MysteryWord m1atri8x = new MysteryWord("jazziest");
            MysteryWord ma2tri9  = new MysteryWord("cobweb");
            MysteryWord mat10rx  = new MysteryWord("buffoon");
            MysteryWord mati11x  = new MysteryWord("croquet");
            MysteryWord marix12  = new MysteryWord("daiquiri");
            MysteryWord mtrix13  = new MysteryWord("frizzled");
            MysteryWord matrix14 = new MysteryWord("kilobyte");
            MysteryWord matri15  = new MysteryWord("kiwifruit");
            MysteryWord matrx16  = new MysteryWord("mnemonic");
            MysteryWord matix17  = new MysteryWord("pneumatic");
            MysteryWord marix18  = new MysteryWord("onyx");
            MysteryWord mtrix19  = new MysteryWord("rickshaw");
            MysteryWord matrix20 = new MysteryWord("nymph");
            MysteryWord matri21  = new MysteryWord("luxury");
            MysteryWord matrx22  = new MysteryWord("quixotic");
            MysteryWord matix23  = new MysteryWord("megahertz");
            MysteryWord marix24  = new MysteryWord("topaz");
            MysteryWord mtrix25  = new MysteryWord("jukebox");

            // Get random id
            int id = RandomId();

            while (_ids.Contains(id))
            {
                System.Threading.Thread.Sleep(1000);
                id = RandomId();
            }
            _ids.Add(id);
            return(_words[id]);
        }
Exemple #2
0
 public Player(MysteryWord wrd)
 {
     CurrentWord = wrd;
     Score       = 0;
     _games.Add(this);
 }