示例#1
0
        public void Run()
        {
            string[] inputFood = Console.ReadLine().Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
            foreach (string foodName in inputFood)
            {
                int currentPoint = foods.CheckFood(foodName);
                gandalf.FoodPoints += currentPoint;
            }

            gandalf.Moods = moods.CheckMood(gandalf.FoodPoints);
            print();
        }