Skip to content

Instantly share code, notes, and snippets.

@Judrummer
Last active September 22, 2018 12:41
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 Judrummer/f3bf22a2d9fb749bef9802d4fd475096 to your computer and use it in GitHub Desktop.
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