Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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;
        }
        // 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;
        }
Esempio n. 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);
        }