Day 13a updated

silly error - didn't actually affect the outcome... oh well!
This commit is contained in:
Luke Else 2021-12-14 22:49:19 +00:00
parent dda8a38796
commit f25f5f56b7

View File

@ -71,7 +71,7 @@ func FoldX(sheet map[Coordinate]bool, foldPoint int) (folded map[Coordinate]bool
func FoldY(sheet map[Coordinate]bool, foldPoint int) (folded map[Coordinate]bool) {
folded = make(map[Coordinate]bool)
for mark := range sheet {
y := mark.X
y := mark.Y
if y > foldPoint {
//If the value is in the region that gets folded
y = 2*foldPoint - y