public static void StartGame() { Menu(); PlayerStart(); AIStart(); GridGeneration.UpdateField(); GridGenerationAI.UpdateFieldAIAndDontShowShips(); }
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(); } } }