diff --git a/.github/image-20201205170258549.png b/.github/image-20201205170258549.png new file mode 100644 index 0000000..0aece57 Binary files /dev/null and b/.github/image-20201205170258549.png differ diff --git a/template/README.md b/template/README.md index b135af1..566304f 100644 --- a/template/README.md +++ b/template/README.md @@ -1,22 +1,15 @@ -# Day 1: Report Repair +# How to use this template -
Challenge description +1. Create a new copy of the `template` directory, and name it as you please. Enter into that directory. +2. Download your challenge input, and save it as `input.txt`. +3. Edit `info.json` to include the challenge title, year and day number as well as any test cases you would like to include. +4. Write your code. + - If you're using the Go template, ensure you change the import path in `main.go` to `"adventOfCode//go/challenge"`. +5. Run your code. + - Python: `python ./python`. You may also need to run `pip install -r ../requirements.txt`. + - Go: `go run ./go` +6. (optional) Delete the copy of this README, rename the other README and edit it. -## Part One -... -## Part Two - -... - -
- -
Script output - -``` -❯ python .\python -... -``` - -
+![image-20201205170258549](https://github.com/codemicro/adventOfCode/blob/master/.github/image-20201205170258549.png?raw=true) \ No newline at end of file diff --git a/template/README.md.off b/template/README.md.off new file mode 100644 index 0000000..b135af1 --- /dev/null +++ b/template/README.md.off @@ -0,0 +1,22 @@ +# Day 1: Report Repair + +
Challenge description + +## Part One + +... + +## Part Two + +... + +
+ +
Script output + +``` +❯ python .\python +... +``` + +
diff --git a/template/go/main.go b/template/go/main.go index be41321..9035090 100644 --- a/template/go/main.go +++ b/template/go/main.go @@ -12,12 +12,6 @@ import ( "github.com/fatih/color" ) -const ( - year = "2020" - day = "1" - title = "Report Repair" -) - func main() { var infoStruct info {