Esempio n. 1
0
 public static void Shoot(int height, int width, char bullet)
 {
     Console.Clear();
     UnlockShot(height, width, bullet);
     GridGenerationAI.UpdateFieldAIAndDontShowShips();
     if (bullet == '#')
     {
         EndOfGame.IfPlayerWon();
         if (GameCycle.isgameEnded)
         {
             GameCycle.GameProcess();
         }
         else
         {
             AIInteraction.Attack();
             Logic.wasHittedFromAI();
         }
     }
 }
Esempio n. 2
0
        public static void Shoot(int height, int width, char bullet)
        {
            GridGeneration.UpdateField();
            UnlockShot(height, width, bullet);

            if (bullet == '#' && !GameCycle.isgameEnded)
            {
                EndOfGame.IfPlayerWon();
                if (GameCycle.isgameEnded)
                {
                    GameCycle.GameProcess();
                }
                else
                {
                    PlayerInteraction.Attack();
                    Logic.wasHitFromPlayer();
                }
            }
        }
Esempio n. 3
0
 private static void AICycle()
 {
     AIInteraction.Attack();
     Logic.wasHittedFromAI();
     EndOfGame.IfAIWon();
 }
Esempio n. 4
0
 private static void PlayerCycle()
 {
     PlayerInteraction.Attack();
     Logic.wasHitFromPlayer();
     EndOfGame.IfPlayerWon();
 }