Esempio n. 1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = 1344,
                PreferredBackBufferHeight = 608,

                SynchronizeWithVerticalRetrace = true
            };

            Content.RootDirectory = "Content";

            _io                   = new IOPipe();
            _computer             = new IntcodeComputer("Arcade", "input", _io);
            _io.FireEveryNbOutput = 3;

            _io.IntOuputted += OnComputerOutput;

            _io.ReadingInt += OnComputerRequestingInput;

            _computer.MemoryWriteAt(0, 2);
        }