コード例 #1
0
ファイル: Day7.cs プロジェクト: AlFasGD/AdventOfCode
        public override int SolvePart2()
        {
            var    instructionCollection = new InstructionCollection(instructions);
            var    system = new WireSystem(instructionCollection);
            ushort value  = system["a"];

            instructionCollection.SetAssignmentInstruction("b", Instruction.Assignment(value.ToString(), "b"));
            system.Reset();
            value = system["a"];
            return(value);
        }