/// <summary> /// Static method which returns an instance of a battlefield. /// </summary> /// <param name="size">The size of the battlefield.</param> /// <returns>An instance of a battlefield.</returns> public static Battlefield Create(int size) { return instance ?? (instance = new Battlefield(size)); }
static void Main(string[] args) { Battlefield battlefield = new Battlefield(); battlefield.RunBattle(); Console.ReadLine(); }