Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Battleships battleships = new Battleships(10, 10);

            battleships.Play();
        }
Esempio n. 3
0
 static void Main()
 {
     using (var game = new Battleships()) game.Run();
 }