Assignment 6 - Quick fix
This commit is contained in:
parent
2e8c1aa491
commit
81fa57d951
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue