Example #1
0
        public void Cycle()
        {
            int winner = 0;

            while (winner == 0)
            {
                UI.PrintMenu();
                UI.DoAction();

                if (army1.IsDefeated())
                {
                    winner = 1;
                }
                else if (army2.IsDefeated())
                {
                    winner = 2;
                }
            }
            GameLogger.Instance.Log(String.Format("Побеждает армия №{0}", winner), GameLogger.LOG_LEVEL__SUCCESS);
        }