Skip to content

Instantly share code, notes, and snippets.

@Judrummer
Last active September 22, 2018 12:41
Show Gist options
  • Select an option

  • Save Judrummer/f3bf22a2d9fb749bef9802d4fd475096 to your computer and use it in GitHub Desktop.

Select an option

Save Judrummer/f3bf22a2d9fb749bef9802d4fd475096 to your computer and use it in GitHub Desktop.
fun hangman(secretWord: String, letters: List<Char>) = (secretWord.toList() - letters).isEmpty()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment