This commit is contained in:
parent
143679ec7e
commit
a36d0efd4b
@ -39,6 +39,7 @@ fun findXmas(y: Int, x: Int): Int {
|
||||
for (searchOffset in xMasSearchOffsets) {
|
||||
val last = searchOffset.last()
|
||||
if ((y+last.first) !in ycoordinates.indices || (x+last.second) !in ycoordinates[y].indices){
|
||||
if (x == 1 && y == 139) println("skipping x: (${x+last.second}, y: ${y+last.first})")
|
||||
continue
|
||||
}
|
||||
var match = true
|
||||
|
@ -3772,6 +3772,11 @@ x: 131, y: 138
|
||||
x: 136, y: 138
|
||||
x: 139, y: 138
|
||||
x: 1, y: 139
|
||||
skipping x: (1, y: 142)
|
||||
skipping x: (-2, y: 139)
|
||||
skipping x: (4, y: 142)
|
||||
skipping x: (-2, y: 136)
|
||||
skipping x: (-2, y: 142)
|
||||
x: 11, y: 139
|
||||
x: 20, y: 139
|
||||
x: 23, y: 139
|
||||
|
Loading…
Reference in New Issue
Block a user