/// <summary>
        /// Gets the player to attack the indicated row and column.
        /// </summary>
        /// <param name="row">the row to attack</param>
        /// <param name="col">the column to attack</param>
        /// <remarks>
        /// Checks the attack result once the attack is complete
        /// </remarks>
        public static void Attack(int row, int col)
        {
            AttackResult result = default(AttackResult);

            result = _theGame.Shoot(row, col);
            CheckAttackResult(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the player to attack the indicated row and column.
        /// </summary>
        /// <param name="row">the row to attack</param>
        /// <param name="col">the column to attack</param>
        /// <remarks>
        /// Checks the attack result once the attack is complete
        /// </remarks>
        public static void Attack(int row, int col)
        {
            AttackResult result = _myGame.Shoot(row, col);

            CheckAttackResult(result);
        }