Beispiel #1
0
        public void StartGame()
        {
            GameInfo.TeamsInfo(FirstTeam, SecondTeam);
            TeamInfo.Equipments(FirstTeam.Ships);
            TeamInfo.Equipments(SecondTeam.Ships);
            GameInfo.Start();

            while (!this.GameOver)
            {
                PhaseAim();
                PhaseShoot();
                PhaseDamage();
                GameInfo.TeamsInfo(FirstTeam, SecondTeam);
            }

            if (Winner != null)
            {
                GameInfo.Winner(this.Winner.Name);
            }
            else
            {
                GameInfo.BothDefeated();
            }
        }