-
-
Save mukeshsolanki/ca0908a7f7b9dfd66b0595f30b44fa66 to your computer and use it in GitHub Desktop.
This file contains 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
fun reset() { | |
mutableState.update { | |
it.copy( | |
food = Pair(5, 5), | |
snake = listOf(Pair(7, 7)), | |
currentDirection = SnakeDirection.Right | |
) | |
} | |
currentDirection.value = SnakeDirection.Right | |
move = Pair(1, 0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment