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