Day 3: WIP

This commit is contained in:
Meutel 2017-12-03 12:19:25 +01:00
parent c7191b0d91
commit 86025cd66f

25
03dec/main.go Normal file
View File

@ -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
}