Ejemplo n.º 1
0
        static public string Run(string first_strike_army_name, int no_of_dragons, int no_of_white_lords)
        {
            //
            // Some work here; return type and arguments should be according to the problem's requirements
            //

            Army firstStrikeArmy;

            if (!TryParseFirstStrikeArmy(first_strike_army_name, out firstStrikeArmy) ||
                no_of_dragons < 0 || no_of_white_lords < 0)
            {
                return(InvalidParameterOutput);
            }

            var game = new Game();

            var result = game.Simulate(firstStrikeArmy, no_of_dragons, no_of_white_lords);

            return((result.Item1 == Army.SevenKingdom ? SevenKingdomArmy : WhiteWalkerArmy) +
                   "|" + result.Item2.ToString());
        }