Пример #1
0
        //order: 0 for RND, 1 for FTL, 2 LTF
        public void Get1FC(PharmacyForm PH, int order)
        {
            FlashCard c = new FlashCard();

            if (order == 0)
            {
                c = getRandomFC();
            }
            else
            {
                c = (FlashCard)cards[index++];
            }
            if (index == cards.Count)
            {
                index = 0;
            }
            //Question and answer must contain one word

            Regex rx = new Regex(@"\b([a-zA-Z]+)\b");

            //System.Threading.Thread.Sleep(200);
            if (rx.IsMatch(c.Question) && rx.IsMatch(c.Answer))
            {
                PH.questionlabel.Text = c.Question;

                PH.rightAnswer = c.Answer;
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            var PH = new PharmacyForm();

            Application.Run(PH);
            //FlashCard.Get1FC(PH);
            if (args.Length == 0)
            {
                //MneumonicSystem.Phonetic();
                //TypingGame.TypingGameStart();
                //WorkingMemoryGame.Play(10, 3, true);//keep constant at this value for accurate stats
                //Arithmetic.Game(10, 2, 11, 20);

                //Console.WriteLine("Do a plank or prone y");
                //Timer();
                //FlashCard.FlashCards();
                //if scores increase run a rnd p**n file
            }
            else if (args[0] == "fc")
            {
                new Deck("").DisplayAllFC();
            }
            else if (args[0] == "tg")
            {
                TypingGame.TypingGameStart();
            }
            else if (args[0] == "ph")
            {
                MneumonicSystem.Phonetic();
            }
            else if (args[0] == "read")
            {
                LoopDelegate ld = new LoopDelegate(OneRandRead);

                InfRounds(ld);
            }
            else if (args[0] == "wm")
            {
                WorkingMemoryGame.Play(10, 2, true);//keep constant at this value for accurate stats
            }
            else if (args[0] == "celeb")
            {
                MneumonicSystem.Celebrity();
            }
            else if (args[0] == "ag")
            {
                Arithmetic.Game(10, 2, 4, 20);
            }
            else if (args[0] == "timer")
            {
                Timer();
            }
            else if (args[0] == "test")
            {
                TestP();
            }
        }