Compare commits

..

No commits in common. "c2b2be8fec8294804ee0420865a8363979a78715" and "a70db1f11878608854d1ad97637a4812d0a4499e" have entirely different histories.

3 changed files with 1 additions and 16 deletions

View file

@ -2,6 +2,3 @@
This repo contains the result of a masochistic chemical engineer. This repo contains the result of a masochistic chemical engineer.
https://adventofcode.com/ https://adventofcode.com/
### License
This repository is licensed under the MIT license unless otherwise specified.

View file

@ -19,11 +19,3 @@ Part 2 is written in Go and can only be ran on Linux, so it counts.
#### Part 2: #### Part 2:
0. (Optional) Compile `d4p2.go` 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` 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)

View file

@ -1,3 +1,4 @@
// +build linux
package main package main
import ( import (
@ -7,7 +8,6 @@ import (
"os" "os"
"strings" "strings"
"regexp" "regexp"
"runtime"
) )
func find_num_wins(winners string, numbers string) int { func find_num_wins(winners string, numbers string) int {
@ -24,10 +24,6 @@ func find_num_wins(winners string, numbers string) int {
func main() { func main() {
if runtime.GOOS != "linux" {
panic("This is for Linux only.")
}
if len(os.Args) < 2 { if len(os.Args) < 2 {
panic("You did not specify an input file.") panic("You did not specify an input file.")
} }