/// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">Program arguments.</param>
        public static void Main(string[] args)
        {
            ProximaCore.Init();

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            _textLogger     = new TextLogger(LogsDirectory);
            _consoleManager = new ColorfulConsoleManager(ApplicationName);
            _configManager  = new ConfigManager(ConfigFilename);
            _ficsCore       = new FICSCore(_consoleManager, _configManager, _textLogger);

            _ficsCore.Run();

            while (true)
            {
                var text = Console.ReadLine();
                if (text != null)
                {
                    if (text.Contains("quit"))
                    {
                        break;
                    }

                    _ficsCore.Send(text);
                }
            }
        }
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">Program arguments.</param>
        public static void Main(string[] args)
        {
            _textLogger = new TextLogger(LogsDirectory);
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            ProximaCore.Init();

            var core = new CECPCore(_textLogger);

            core.Run();
        }
Exemple #3
0
        public ChessCommand()
        {
            ProximaCore.Init();

            _images            = new Dictionary <string, Image <Rgba32> >();
            _selectedPositions = new List <Position>();
            _messageIds        = new List <ulong>();

            CreateSession();
            LoadChessImages();
        }
Exemple #4
0
        public static void Main()
        {
            var commandsManager = new CommandsManager();

            var consoleManager = new ConsoleManager(commandsManager, "Proxima b 2.0dev GUI");

            consoleManager.RunAsync();

            ProximaCore.Init();

            using (var game = new GUICore(consoleManager, commandsManager))
            {
                game.Run();
            }
        }
Exemple #5
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">Program arguments.</param>
        public static void Main(string[] args)
        {
            _textLogger = new TextLogger(LogsDirectory);
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            ProximaCore.Init();

            var consoleManager = new ColorfulConsoleManager(ApplicationName);
            var configManager  = new ConfigManager(ConfigFilename);

            var ficsCore = new FICSCore(consoleManager, configManager, _textLogger);

            ficsCore.Run();

            while (!Console.ReadLine().Contains("quit"))
            {
                ;
            }
        }
Exemple #6
0
 public OpeningParser()
 {
     ProximaCore.Init();
 }