Example #1
0
 public void Init()
 {
     _code   = Aoc.Framework.Input.GetLongVector(this, ",");
     _cpu    = new IntCpu();
     _result = 0;
     _first  = true;
 }
Example #2
0
 public void Init()
 {
     _network = new IntCpu[_size];
     for (int i = 0; i < _size; ++i)
     {
         _network[i] = new IntCpu();
     }
 }
Example #3
0
        public void Init()
        {
            _code       = Aoc.Framework.Input.GetLongVector(this, ",");
            _cpu        = new IntCpu();
            _amplifiers = new IntCpu[5];
            for (int i = 0; i < 5; ++i)
            {
                _amplifiers[i] = new IntCpu();
            }

            _amplifiers[0].OnOutput += () => Pipe(0);
            _amplifiers[1].OnOutput += () => Pipe(1);
            _amplifiers[2].OnOutput += () => Pipe(2);
            _amplifiers[3].OnOutput += () => Pipe(3);
            _amplifiers[4].OnOutput += () => Pipe(4);
        }
Example #4
0
 public void Init()
 {
     _cpu = new IntCpu();
 }
Example #5
0
 public void Init()
 {
     _cpu   = new IntCpu();
     _score = 0;
 }
Example #6
0
 public void Init()
 {
     _cpu   = new IntCpu();
     _board = new Board2D <long>();
 }