public static void Main() { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; Console.BufferHeight = Console.WindowHeight = GameHeight; Console.BufferWidth = Console.WindowWidth = GameWidth; ConsoleHelper.WriteOnConsole(GameHeight - 1, GameWidth - ProgramName.Length - 1, ProgramName, ConsoleColor.Green); var consolePlayer1 = new ConsoleUiDecorator(new ConsolePlayer(0), 0, GameWidth, 5); var consolePlayer2 = new ConsoleUiDecorator(new IntelligentPlayer(), 6, GameWidth, 5); ITexasHoldemGame game = new TwoPlayersTexasHoldemGame(consolePlayer1, consolePlayer2); game.Start(); }
public static void Main() { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; Console.BufferHeight = Console.WindowHeight = GameHeight; Console.BufferWidth = Console.WindowWidth = GameWidth; ConsoleHelper.WriteOnConsole(GameHeight - 1, GameWidth - ProgramName.Length - 1, ProgramName, ConsoleColor.Green); var consolePlayer1 = new ConsoleUiDecorator(new ConsolePlayer(0), 0, GameWidth, 5); var consolePlayer2 = new ConsoleUiDecorator(new SmartPlayer(), 6, GameWidth, 5); ITexasHoldemGame game = new TwoPlayersTexasHoldemGame(consolePlayer1, consolePlayer2); game.Start(); }
public static void Main() { Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; Console.BufferHeight = Console.WindowHeight = GameHeight; Console.BufferWidth = Console.WindowWidth = GameWidth; ConsoleHelper.WriteOnConsole(GameHeight - 1, GameWidth - ProgramName.Length - 1, ProgramName, ConsoleColor.Green); //TODO our player here var raiseTwoSevenTestPlayer = new ConsoleUiDecorator(new RaiseTwoSevenPlayer(), 0, GameWidth, 5); var consolePlayer2 = new ConsoleUiDecorator(new SmartPlayer(), 6, GameWidth, 5); ITexasHoldemGame game = new TwoPlayersTexasHoldemGame(raiseTwoSevenTestPlayer, consolePlayer2); game.Start(); }