From 86025cd66f82833fb6f7d601bf9bbdadaa8e21fd Mon Sep 17 00:00:00 2001 From: Meutel Date: Sun, 3 Dec 2017 12:19:25 +0100 Subject: [PATCH] Day 3: WIP --- 03dec/main.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 03dec/main.go diff --git a/03dec/main.go b/03dec/main.go new file mode 100644 index 0000000..1b1098b --- /dev/null +++ b/03dec/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "os" + "strconv" +) + +const ( + W = iota + N + E + S +) + +func main() { + n, err := strconv.Atoi(os.Args[1]) + if err != nil { + os.Exit(1) + } + fmt.Println(n) + + cur, x, y, dir, width, height := 1, 0, 0, W + // create cell and compute change direction, expand grid +}