private void OnChanceGathererComplete(object sender, EventArgs args)
		{
			if (sender is ChanceGatherer)
			{
				ChanceGatherer chanceGatherer = (ChanceGatherer)sender;
				List<ChanceSubmission> submissions = chanceGatherer.Submissions;
				_chanceProvider = new ChanceProvider(submissions);

				// Go to the introduction
				GameIntroduction gameIntroduction = new GameIntroduction(_storyTeller);
				gameIntroduction.Complete += OnGameIntroductionComplete;
				_navigationService.Navigate(gameIntroduction);
			}
		}
Example #2
0
        static void Main(string[] args)
        {
            //Initializing
            GameIntroduction.ArtIntro();
            Location.CreateMap();
            GameStory.CreateStory();
            CurrentLocation = Location.Crossroad;
            //Initialization done

            Console.WriteLine("\n \n \n");
            Console.WriteLine("Would you like to play?");
            Console.WriteLine("'Yes' or 'No'?");
            Console.WriteLine("\n");

            var UserInput = Console.ReadLine().ToUpper();

            if (UserInput == "YES")
            {
                ConsoleClear();
                Introduction.StoryIntroduction();

                while (true)
                {
                    UserInput = Console.ReadLine().ToUpper();

                    if (UserInput == "HELP")
                    {
                        Commands.Help();
                    }
                    if (UserInput == "SEARCH")
                    {
                        Commands.Search();
                    }
                    if (UserInput == "LOCATION")
                    {
                        Commands.LocationInformation();
                    }
                    if (UserInput == "MOVE")
                    {
                        Commands.Move();
                    }
                }
            }
        }