renamed module... for some reason

This commit is contained in:
alexchao26
2020-11-27 02:53:18 -05:00
parent b883a59052
commit 574bb4b9cc
58 changed files with 100 additions and 78 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+2 -2
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
@@ -28,7 +28,7 @@ func main() {
// run step on the cloned slice
step(clone, 0)
// check if the zero address is equal to the AoC value
// check if the zero address is equal to the github.com/alexchao26/advent-of-code-go value
if clone[0] == 19690720 {
// print answers to console (manually add to advent of code)
fmt.Println("noun is", i, "verb is", j)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -6,7 +6,7 @@ MakePermutations is in the util package as that will likely be reused
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -6,7 +6,7 @@ MakePermutations is in the util package as that will likely be reused
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -6,7 +6,7 @@ MakePermutations is in the util package as that will likely be reused
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -6,7 +6,7 @@ MakePermutations is in the util package as that will likely be reused
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+3 -3
View File
@@ -5,8 +5,8 @@ import (
"math"
"strings"
"adventofcode/2019/day10/part2/trig"
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/2019/day10/part2/trig"
"github.com/alexchao26/advent-of-code-go/util"
)
/*
@@ -98,7 +98,7 @@ func main() {
// print the last used asteroid
fmt.Println("Last asteroid", lastAsteroid)
// print the AoC-formatted answer
// print the github.com/alexchao26/advent-of-code-go-formatted answer
fmt.Println("Advent of code answer: ", lastAsteroid.y*100+lastAsteroid.x)
}
+1 -1
View File
@@ -6,7 +6,7 @@ MakePermutations is in the util package as that will likely be reused
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -9,7 +9,7 @@ Draw function generates a string to display in terminal
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+1 -1
View File
@@ -9,7 +9,7 @@ Draw function generates a string to display in terminal
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -10,7 +10,7 @@ NOTE: The "hold for an input" value was changed from -1 to -2 in the Intcode com
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+1 -1
View File
@@ -9,7 +9,7 @@ Robot struct houses an Intcode computer and its RecursiveMove method populates a
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"math"
+1 -1
View File
@@ -12,7 +12,7 @@ Robot struct houses an Intcode computer and its RecursiveMove method populates a
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+2 -2
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
@@ -28,7 +28,7 @@ func main() {
digits = getNextOutputNumber(digits, patterns)
}
// Transform into AoC output
// Transform into github.com/alexchao26/advent-of-code-go output
var firstEightDigits int
for i := 0; i < 8; i++ {
firstEightDigits *= 10
+2 -2
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
@@ -35,7 +35,7 @@ func main() {
fmt.Printf("output received at %v, %v to go\n", time.Now(), 100-i-1)
}
// Transform into AoC output
// Transform into github.com/alexchao26/advent-of-code-go output
var firstEightDigits int
for i := 0; i < 8; i++ {
firstEightDigits *= 10
+1 -1
View File
@@ -8,7 +8,7 @@ Robot struct houses an Intcode computer and a method to initialize the floor det
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -6,7 +6,7 @@ Robot struct houses an Intcode computer and a method to initialize the floor det
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"strings"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"sort"
+1 -1
View File
@@ -7,7 +7,7 @@ Intcode struct is defined within this file
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -7,7 +7,7 @@ Intcode struct is defined within this file
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"strings"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"math"
"strings"
+1 -1
View File
@@ -6,7 +6,7 @@ Intcode struct is defined within this file
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -7,7 +7,7 @@ Helper function that converts strings to ASCII codes to be written to the comput
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strconv"
"strings"
+1 -1
View File
@@ -6,7 +6,7 @@ Intcode struct is defined within this file
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
+2 -2
View File
@@ -7,7 +7,7 @@ Network struct to store 50 instances of Intcode computers and 50 queues for thei
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"log"
"strconv"
@@ -82,7 +82,7 @@ func main() {
// if all nat computers are waiting for inputs, write the natpacket to
// the zero-th computer's queue
if allNatsWaiting {
// check if this packet has a duplicate Y value, if so print AoC output
// check if this packet has a duplicate Y value, if so print github.com/alexchao26/advent-of-code-go output
if lastNatY == natPacket[1] {
fmt.Println(lastNatY, "written to NAT twice")
// stop the infinite loop
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"fmt"
"strings"
)
+1 -1
View File
@@ -6,7 +6,7 @@ Helper function that converts strings to ASCII codes to be written to the comput
package main
import (
"adventofcode/util"
"github.com/alexchao26/advent-of-code-go/util"
"bufio"
"fmt"
"log"