Ejemplo n.º 1
0
        public GameProcessor(ConsoleBoardDisplayer consoleBoardDisplayer, GameInputThreadProcessor gameInputThreadProcessor, BoardFileParser boardParser, int tickPeriod)
        {
            ConsoleBoardDisplayer    = consoleBoardDisplayer;
            GameInputThreadProcessor = gameInputThreadProcessor;
            BoardFileParser          = boardParser;

            InitializeNewGame(tickPeriod);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var gameInputThreadProcessor = new GameInputThreadProcessor();

            var displayer = new ConsoleBoardDisplayer();

            var parser = new BoardFileParser();

            var gameProcessor = new GameProcessor(displayer, gameInputThreadProcessor, parser, 500);

            gameInputThreadProcessor.Processor = gameProcessor;

            gameProcessor.RunGame();
        }