static void Main(string[] args) { ISettings settings = new Settings { BoardSize = 10 }; IInput input = new Input(); var game = new Battleships(settings, input); game.CreatePlayer("Chris"); game.CreatePlayer("John"); var p1 = game.GetPlayer("Chris"); var p2 = game.GetPlayer("John"); p1.SetShips(); p2.SetShips(); game.StartGame(); }
static void Main(string[] args) { Battleships battleships = new Battleships(10, 10); battleships.Play(); }
static void Main() { using (var game = new Battleships()) game.Run(); }