public void PlayInteractive() { var comp = new AsciiCapableIntcode(_program); while (true) { comp.AnimateOutputNonAscii(true); } }
public long Run(bool animate = false) { var asciiComp = new AsciiCapableIntcode(_program); asciiComp.InputLine("NOT C J"); asciiComp.InputLine("AND D J"); asciiComp.InputLine("NOT A T"); asciiComp.InputLine("OR T J"); asciiComp.InputLine("RUN"); return(asciiComp.AnimateOutputNonAscii(animate)); }
public long Walk(bool animate = false) { var asciiComp = new AsciiCapableIntcode(_program); asciiComp.InputLine("NOT C T"); asciiComp.InputLine("AND D T"); asciiComp.InputLine("NOT A J"); asciiComp.InputLine("OR T J"); asciiComp.InputLine("WALK"); return(asciiComp.AnimateOutputNonAscii(animate)); }