Last active
August 5, 2021 13:18
-
-
Save zsoltk/8670288bba58292fb5b9a7df8163628f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val fromPosition = properties.fromState.board.find(piece)?.position | |
val currentOffset = fromPosition | |
?.toCoordinate(properties.isFlipped) | |
?.toOffset(properties.squareSize) | |
val targetOffset = toPosition | |
.toCoordinate(properties.isFlipped) | |
.toOffset(properties.squareSize) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment