예제 #1
0
 public void Execute(IntCodeVm vm, StateMachine sm)
 {
     Vm            = vm;
     Sm            = sm;
     var(modes, p) = GetData(Sm);
     ExecuteImpl(modes, p);
 }
예제 #2
0
 protected CommandBase()
 {
     Sm = new StateMachine(new Dictionary <BigInteger, BigInteger>());
     Vm = new IntCodeVm("0");
 }