예제 #1
0
        //*****************************************************************************
        public string right_wrong(bool a, bool b, bool c, bool d, bool e, bool f)
        {
            Confirm test = new Confirm();
            Random random = new Random();
            Findfortune fortune = new Findfortune();

            string output;
            int target = test.answer(a, b, c, d, e, f);

            if (target == random.Next(6))
            {
                output = "Well done!  Here's your reward:\n\n";
                output += fortune.prize();
            }
            else
                output = "Wrong!  You're hopeless!  You fail!  Your miserable existance has no meaning!  Have a good day. ^_^";

            return output;
        }
예제 #2
0
        //*******************************************************************************
        public bool testrunsign(int test)
        {
            string[] filler = new string[1];

            Findfortune fortune = new Findfortune();

            string age = Convert.ToString(test);
            fortune.passin("", age, 0, 1, "", "", "testrun", filler, filler, false);

            string out1 = fortune.bigfortune();
            fortune.sign++;
            string out2 = fortune.bigfortune();

            if (out1 == out2)
                return false;
            else
                return true;
        }