Day 3: WIP
This commit is contained in:
parent
c7191b0d91
commit
86025cd66f
25
03dec/main.go
Normal file
25
03dec/main.go
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user