You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
235 B

package day03
import "log"
func Solve2() {
trees := checkSlope(rows, 1, 1) *
checkSlope(rows, 1, 3) *
checkSlope(rows, 1, 5) *
checkSlope(rows, 1, 7) *
checkSlope(rows, 2, 1)
log.Println("2020-12-03.02: Answer:", trees)
}