/// <summary>
        /// This method initialize the playfield and the strategy for popping the balloons and then
        /// initilize the game. After everything is ready starts the game life cycle.
        /// </summary>
        public void Start()
        {
            Playfield   gamePlayfield   = this.InitializePlayfield();
            PopStrategy gamePopStrategy = new RecursivePopStrategy();

            this.InitializeGame(gamePlayfield, gamePopStrategy);
            ConsoleIOFacade.PrintWelcomeMessage();
            ConsoleIOFacade.PrintTable(this.playfield);
            this.PlayGame();
        }
Exemplo n.º 2
0
        /// <summary>
        /// This method initialize the playfield and the strategy for popping the balloons and then
        /// initilize the game. After everything is ready starts the game life cycle.
        /// </summary>
        public void Start()
        {
            Playfield gamePlayfield = this.InitializePlayfield();
            PopStrategy gamePopStrategy = new RecursivePopStrategy();

            this.InitializeGame(gamePlayfield, gamePopStrategy);
            ConsoleIOFacade.PrintWelcomeMessage();
            ConsoleIOFacade.PrintTable(this.playfield);
            this.PlayGame();
        }
        public void CallingPopBalloonsWithNullPlayFieldReferenceShouldThrowAnException()
        {
            RecursivePopStrategy popStrategy = new RecursivePopStrategy();

            popStrategy.PopBaloons(1, 1, null);
        }