Refactoring Day 23
The normal intcode processor that I built doesn't seem to work for this.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user