public List <GameOrder> GetOrders() { var deploys = GetPlaceArmiesMoves(); var attacks = GetAttackTransferMoves(); var final = deploys.Cast <BotOrder>().Concat(attacks).ToList(); AILog.Log("Final " + final.Count + " orders: "); foreach (var order in final) { AILog.Log(" - " + order); } return(BotOrder.Convert(final)); }
public List <GameOrder> GetOrders() { var deploys = GetPlaceArmiesMoves(); var attacks = GetAttackTransferMoves(); var final = new List <BotOrder>(); deploys.ForEach(o => final.Add(o)); attacks.ForEach(o => final.Add(o)); AILog.Log("Cowzow", "Final " + final.Count + " orders: "); foreach (var order in final) { AILog.Log("Cowzow", " - " + order); } return(BotOrder.Convert(final)); }