Assignment 6 - Quick fix

This commit is contained in:
Anthony Cicchetti 2019-07-25 18:01:05 -04:00
parent 2e8c1aa491
commit 81fa57d951

View file

@ -28,7 +28,7 @@ class MarbleSolitaireControllerImpl(private val rd: Readable, private val ap: Ap
ap.appendln("Invalid input. Try again.")
}
val (fromRow, fromCol, toRow, toCol) = filteredInput.map { it.toInt() - 48 }
val (fromRow, fromCol, toRow, toCol) = filteredInput.map { it.toInt() - 49 }
model.move(fromRow, fromCol, toRow, toCol)