Skip to content

Instantly share code, notes, and snippets.

@MarcinMoskala
Created May 25, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarcinMoskala/efecd9273ead977b7aecae77bd990af8 to your computer and use it in GitHub Desktop.
Save MarcinMoskala/efecd9273ead977b7aecae77bd990af8 to your computer and use it in GitHub Desktop.
fun cardValue(card: Int) = when (card) {
in 2..6 -> 1
10, 11 -> -1
else -> 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment