Compare commits
No commits in common. "c2b2be8fec8294804ee0420865a8363979a78715" and "a70db1f11878608854d1ad97637a4812d0a4499e" have entirely different histories.
c2b2be8fec
...
a70db1f118
3 changed files with 1 additions and 16 deletions
|
@ -2,6 +2,3 @@
|
|||
This repo contains the result of a masochistic chemical engineer.
|
||||
|
||||
https://adventofcode.com/
|
||||
|
||||
### License
|
||||
This repository is licensed under the MIT license unless otherwise specified.
|
||||
|
|
|
@ -19,11 +19,3 @@ Part 2 is written in Go and can only be ran on Linux, so it counts.
|
|||
#### Part 2:
|
||||
0. (Optional) Compile `d4p2.go`
|
||||
1. Run the program specifying the input as the first command line argument. `go run d4p2.go input` or `./d4p2 input`
|
||||
|
||||
### FAQ:
|
||||
#### 1. Spreadsheets aren't a programming language!!!!!!!!!!!!!!!!!!
|
||||
That's not a question.
|
||||
#### 2. Aren't you cheating by not using a non-programming language such as a spreadsheet?
|
||||
Don't care.
|
||||
|
||||
(Besides, it was harder this way)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// +build linux
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -7,7 +8,6 @@ import (
|
|||
"os"
|
||||
"strings"
|
||||
"regexp"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
func find_num_wins(winners string, numbers string) int {
|
||||
|
@ -24,10 +24,6 @@ func find_num_wins(winners string, numbers string) int {
|
|||
|
||||
|
||||
func main() {
|
||||
if runtime.GOOS != "linux" {
|
||||
panic("This is for Linux only.")
|
||||
}
|
||||
|
||||
if len(os.Args) < 2 {
|
||||
panic("You did not specify an input file.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue