Пример #1
0
        // ReSharper disable once UnusedMember.Local
        private static ISantaseGame CreateTwoPlayerGame()
        {
            IPlayer      firstPlayer  = new ConsolePlayer(5, 10);
            IPlayer      secondPlayer = new ConsolePlayer(10, 10);
            ISantaseGame game         = new SantaseGame(firstPlayer, secondPlayer);

            return(game);
        }
Пример #2
0
        // ReSharper disable once UnusedMember.Local
        private static ISantaseGame CreateGameVersusBot()
        {
            IPlayer      firstPlayer  = new ConsolePlayer(5, 10);
            IPlayer      secondPlayer = new SmartPlayer();
            ISantaseGame game         = new SantaseGame(firstPlayer, secondPlayer);

            return(game);
        }
Пример #3
0
        // ReSharper disable once UnusedMember.Local
        private static ISantaseGame CreateTwoPlayerGame()
        {
            Console.BufferHeight = Console.WindowHeight = 17;
            Console.BufferWidth = Console.WindowWidth = 50;

            IPlayer firstPlayer = new ConsolePlayer(5, 10);
            IPlayer secondPlayer = new ConsolePlayer(10, 10);
            ISantaseGame game = new SantaseGame(firstPlayer, secondPlayer);
            return game;
        }
Пример #4
0
        // ReSharper disable once UnusedMember.Local
        private static ISantaseGame CreateGameVersusBot()
        {
            Console.BufferHeight = Console.WindowHeight = 50;
            Console.BufferWidth = Console.WindowWidth = 50;

            IPlayer firstPlayer = new ConsolePlayer(5, 10);
            IPlayer secondPlayer = new ConsoleWebPlayer();
            ISantaseGame game = new SantaseGame(firstPlayer, secondPlayer);
            return game;
        }
Пример #5
0
        // ReSharper disable once UnusedMember.Local
        private static ISantaseGame CreateGameVersusBot()
        {
            Console.BufferHeight = Console.WindowHeight = 17;
            Console.BufferWidth  = Console.WindowWidth = 50;

            IPlayer      firstPlayer  = new ConsolePlayer(5, 10);
            IPlayer      secondPlayer = new SantiagoPlayer();
            ISantaseGame game         = new SantaseGame(firstPlayer, secondPlayer);

            return(game);
        }