Example #1
0
        public override Interaction Run()
        {
            var renderer = new ConsoleRenderer();
            var input    = new ConsoleInput();
            var face     = new Face(renderer, input);

            face.Talk("So happy to be here!");
            face.RememberSingleValue("What's new?");
            face.Talk("Uh huh.");
            return(new Interaction());
        }
Example #2
0
        public override Interaction Run()
        {
            var renderer = new ConsoleRenderer();
            var input = new ConsoleInput();
            var face = new Face(renderer, input);

            face.Talk("So happy to be here!");
            face.RememberSingleValue("What's new?");
            face.Talk("Uh huh.");
            return new Interaction();
        }
Example #3
0
        public override Interaction Run()
        {
            var renderer = new ConsoleRenderer();
            var input = new ConsoleInput();
            var face = new Face(renderer, input);

            face.Talk("Let's think of a secret");
            string question = Memory.GetInstance().RandomQuestionWithNoAnswer;
            if (string.IsNullOrEmpty(question))
            {
                face.Talk("Sorry, I'm full on friends");
                return new Interaction() { success = false };
            }

            Interaction newPlayer = face.RememberSingleValue(question, true);
            face.Talk("Great!");
            return newPlayer;
        }
Example #4
0
        public override Interaction Run()
        {
            var renderer = new ConsoleRenderer();
            var input    = new ConsoleInput();
            var face     = new Face(renderer, input);

            face.Talk("Let's think of a secret");
            string question = Memory.GetInstance().RandomQuestionWithNoAnswer;

            if (string.IsNullOrEmpty(question))
            {
                face.Talk("Sorry, I'm full on friends");
                return(new Interaction()
                {
                    success = false
                });
            }

            Interaction newPlayer = face.RememberSingleValue(question, true);

            face.Talk("Great!");
            return(newPlayer);
        }