minor improvement
This commit is contained in:
parent
a9033f64e5
commit
3f45cddfb1
@ -63,8 +63,8 @@ object Puzzle1 {
|
|||||||
var y: Int = 0
|
var y: Int = 0
|
||||||
var x: Int = 0
|
var x: Int = 0
|
||||||
|
|
||||||
while (y < schematic.length) {
|
while (y < height) {
|
||||||
while (x < schematic(y).length) {
|
while (x < width) {
|
||||||
val c: Char = schematic(y)(x)
|
val c: Char = schematic(y)(x)
|
||||||
if ('0' <= c && c <= '9') {
|
if ('0' <= c && c <= '9') {
|
||||||
val number: String = getNumber(x, y)
|
val number: String = getNumber(x, y)
|
||||||
|
Loading…
Reference in New Issue
Block a user