Refactoring Day 23

The normal intcode processor that I built doesn't seem to work for this.
This commit is contained in:
2020-11-04 08:01:21 -06:00
parent d4a45d2b67
commit f6e0792525
3 changed files with 135 additions and 5 deletions

View File

@@ -3,11 +3,12 @@ package intcodeprocessor
import (
"errors"
"fmt"
helpers "git.bullercodeworks.com/brian/adventofcode/helpers"
"io/ioutil"
"math"
"os"
"strings"
helpers "git.bullercodeworks.com/brian/adventofcode/helpers"
)
const (
@@ -308,7 +309,7 @@ func (p *Program) set(mode, idx, v int) {
func (p *Program) Input(v int) {
p.input <- v
p.waitingForInput = false
//p.waitingForInput = false
}
func (p *Program) Output() int {