コード例 #1
0
 protected override ISantaseGame CreateGame()
 {
     IPlayer firstPlayer = new SantiagoPlayer(); // new PlayerWithLoggerDecorator(new SmartPlayer(), new ConsoleLogger("[-]"))
     IPlayer secondPlayer = new DummyPlayer();
     ISantaseGame game = new SantaseGame(firstPlayer, secondPlayer); // new ConsoleLogger("[game] "));
     return game;
 }
コード例 #2
0
        protected override ISantaseGame CreateGame()
        {
            IPlayer      firstPlayer  = new SmartPlayer();                          // new PlayerWithLoggerDecorator(new SmartPlayer(), new ConsoleLogger("[-]"))
            IPlayer      secondPlayer = new SantiagoPlayer();
            ISantaseGame game         = new SantaseGame(firstPlayer, secondPlayer); // new ConsoleLogger("[game] "));

            return(game);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: gb-umich/SANTIAGO
        // 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;
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: gb-umich/SANTIAGO
        // 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);
        }